home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / QuickTime / QuickTime 3 Interfaces & Libs / QTDevMac / CIncludes / QuickTimeComponents.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-21  |  139.5 KB  |  3,642 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        QuickTimeComponents.h
  3.  
  4.      Contains:    QuickTime Interfaces.
  5.  
  6.      Version:    Technology:    QuickTime 3.0
  7.                  Release:    QuickTime 3.0
  8.  
  9.      Copyright:    © 1990-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __QUICKTIMECOMPONENTS__
  19. #define __QUICKTIMECOMPONENTS__
  20.  
  21. #ifndef __MACTYPES__
  22. #include <MacTypes.h>
  23. #endif
  24. #ifndef __MIXEDMODE__
  25. #include <MixedMode.h>
  26. #endif
  27. #ifndef __COMPONENTS__
  28. #include <Components.h>
  29. #endif
  30. #ifndef __IMAGECOMPRESSION__
  31. #include <ImageCompression.h>
  32. #endif
  33. #ifndef __MOVIES__
  34. #include <Movies.h>
  35. #endif
  36. #ifndef __QUICKDRAW__
  37. #include <Quickdraw.h>
  38. #endif
  39. #ifndef __VIDEO__
  40. #include <Video.h>
  41. #endif
  42. #ifndef __SOUND__
  43. #include <Sound.h>
  44. #endif
  45. #ifndef __QUICKTIMEMUSIC__
  46. #include <QuickTimeMusic.h>
  47. #endif
  48.  
  49.  
  50.  
  51. #if PRAGMA_ONCE
  52. #pragma once
  53. #endif
  54.  
  55. #ifdef __cplusplus
  56. extern "C" {
  57. #endif
  58.  
  59. #if PRAGMA_IMPORT
  60. #pragma import on
  61. #endif
  62.  
  63. #if PRAGMA_STRUCT_ALIGN
  64.     #pragma options align=mac68k
  65. #elif PRAGMA_STRUCT_PACKPUSH
  66.     #pragma pack(push, 2)
  67. #elif PRAGMA_STRUCT_PACK
  68.     #pragma pack(2)
  69. #endif
  70.  
  71.  
  72. enum {
  73.     clockComponentType            = FOUR_CHAR_CODE('clok'),
  74.     systemTickClock                = FOUR_CHAR_CODE('tick'),        /* subtype: 60ths since boot        */
  75.     systemSecondClock            = FOUR_CHAR_CODE('seco'),        /* subtype: seconds since 1904        */
  76.     systemMillisecondClock        = FOUR_CHAR_CODE('mill'),        /* subtype: 1000ths since boot        */
  77.     systemMicrosecondClock        = FOUR_CHAR_CODE('micr')        /* subtype: 1000000ths since boot    */
  78. };
  79.  
  80.  
  81. enum {
  82.     kClockRateIsLinear            = 1,
  83.     kClockImplementsCallBacks    = 2,
  84.     kClockCanHandleIntermittentSound = 4                        /* sound clocks only */
  85. };
  86.  
  87. #if OLDROUTINENAMES
  88. #define GetClockTime(aClock, out) ClockGetTime(aClock, out)
  89. #endif
  90. /** These are Clock procedures **/
  91. EXTERN_API( ComponentResult )
  92. ClockGetTime                    (ComponentInstance         aClock,
  93.                                  TimeRecord *            out)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0001, 0x7000, 0xA82A);
  94.  
  95.  
  96. EXTERN_API( QTCallBack )
  97. ClockNewCallBack                (ComponentInstance         aClock,
  98.                                  TimeBase                 tb,
  99.                                  short                     callBackType)                        FIVEWORDINLINE(0x2F3C, 0x0006, 0x0002, 0x7000, 0xA82A);
  100.  
  101. EXTERN_API( ComponentResult )
  102. ClockDisposeCallBack            (ComponentInstance         aClock,
  103.                                  QTCallBack             cb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0003, 0x7000, 0xA82A);
  104.  
  105. EXTERN_API( ComponentResult )
  106. ClockCallMeWhen                    (ComponentInstance         aClock,
  107.                                  QTCallBack             cb,
  108.                                  long                     param1,
  109.                                  long                     param2,
  110.                                  long                     param3)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x0004, 0x7000, 0xA82A);
  111.  
  112. EXTERN_API( ComponentResult )
  113. ClockCancelCallBack                (ComponentInstance         aClock,
  114.                                  QTCallBack             cb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0005, 0x7000, 0xA82A);
  115.  
  116. EXTERN_API( ComponentResult )
  117. ClockRateChanged                (ComponentInstance         aClock,
  118.                                  QTCallBack             cb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0006, 0x7000, 0xA82A);
  119.  
  120. EXTERN_API( ComponentResult )
  121. ClockTimeChanged                (ComponentInstance         aClock,
  122.                                  QTCallBack             cb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0007, 0x7000, 0xA82A);
  123.  
  124. EXTERN_API( ComponentResult )
  125. ClockSetTimeBase                (ComponentInstance         aClock,
  126.                                  TimeBase                 tb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0008, 0x7000, 0xA82A);
  127.  
  128. EXTERN_API( ComponentResult )
  129. ClockStartStopChanged            (ComponentInstance         aClock,
  130.                                  QTCallBack             cb,
  131.                                  Boolean                 startChanged,
  132.                                  Boolean                 stopChanged)                        FIVEWORDINLINE(0x2F3C, 0x0008, 0x0009, 0x7000, 0xA82A);
  133.  
  134. EXTERN_API( ComponentResult )
  135. ClockGetRate                    (ComponentInstance         aClock,
  136.                                  Fixed *                rate)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x000A, 0x7000, 0xA82A);
  137.  
  138.  
  139.  
  140.  
  141.  
  142. enum {
  143.     StandardCompressionType        = FOUR_CHAR_CODE('scdi'),
  144.     StandardCompressionSubType    = FOUR_CHAR_CODE('imag'),
  145.     StandardCompressionSubTypeSound = FOUR_CHAR_CODE('soun')
  146. };
  147.  
  148.  
  149. typedef CALLBACK_API( Boolean , SCModalFilterProcPtr )(DialogPtr theDialog, EventRecord *theEvent, short *itemHit, long refcon);
  150. typedef CALLBACK_API( short , SCModalHookProcPtr )(DialogPtr theDialog, short itemHit, void *params, long refcon);
  151. typedef STACK_UPP_TYPE(SCModalFilterProcPtr)                     SCModalFilterUPP;
  152. typedef STACK_UPP_TYPE(SCModalHookProcPtr)                         SCModalHookUPP;
  153. /*    Preference flags.*/
  154.  
  155. enum {
  156.     scListEveryCodec            = 1L << 1,
  157.     scAllowZeroFrameRate        = 1L << 2,
  158.     scAllowZeroKeyFrameRate        = 1L << 3,
  159.     scShowBestDepth                = 1L << 4,
  160.     scUseMovableModal            = 1L << 5,
  161.     scDisableFrameRateItem        = 1L << 6
  162. };
  163.  
  164.  
  165. /*    Possible test flags for setting test image.*/
  166.  
  167. enum {
  168.     scPreferCropping            = 1 << 0,
  169.     scPreferScaling                = 1 << 1,
  170.     scPreferScalingAndCropping    = scPreferScaling | scPreferCropping,
  171.     scDontDetermineSettingsFromTestImage = 1 << 2
  172. };
  173.  
  174.  
  175. /*    Dimensions of the image preview box.*/
  176.  
  177. enum {
  178.     scTestImageWidth            = 80,
  179.     scTestImageHeight            = 80
  180. };
  181.  
  182. /*    Possible items returned by hookProc.*/
  183.  
  184. enum {
  185.     scOKItem                    = 1,
  186.     scCancelItem                = 2,
  187.     scCustomItem                = 3
  188. };
  189.  
  190. /*    Result returned when user cancelled.*/
  191.  
  192. enum {
  193.     scUserCancelled                = 1
  194. };
  195.  
  196.  
  197.  
  198. /* Component selectors*/
  199.  
  200. enum {
  201.     scPositionRect                = 2,
  202.     scPositionDialog            = 3,
  203.     scSetTestImagePictHandle    = 4,
  204.     scSetTestImagePictFile        = 5,
  205.     scSetTestImagePixMap        = 6,
  206.     scGetBestDeviceRect            = 7,
  207.     scRequestImageSettings        = 10,
  208.     scCompressImage                = 11,
  209.     scCompressPicture            = 12,
  210.     scCompressPictureFile        = 13,
  211.     scRequestSequenceSettings    = 14,
  212.     scCompressSequenceBegin        = 15,
  213.     scCompressSequenceFrame        = 16,
  214.     scCompressSequenceEnd        = 17,
  215.     scDefaultPictHandleSettings    = 18,
  216.     scDefaultPictFileSettings    = 19,
  217.     scDefaultPixMapSettings        = 20,
  218.     scGetInfo                    = 21,
  219.     scSetInfo                    = 22,
  220.     scNewGWorld                    = 23
  221. };
  222.  
  223. /*    Get/SetInfo structures.*/
  224.  
  225.  
  226. struct SCSpatialSettings {
  227.     CodecType                         codecType;
  228.     CodecComponent                     codec;
  229.     short                             depth;
  230.     CodecQ                             spatialQuality;
  231. };
  232. typedef struct SCSpatialSettings        SCSpatialSettings;
  233.  
  234. struct SCTemporalSettings {
  235.     CodecQ                             temporalQuality;
  236.     Fixed                             frameRate;
  237.     long                             keyFrameRate;
  238. };
  239. typedef struct SCTemporalSettings        SCTemporalSettings;
  240.  
  241. struct SCDataRateSettings {
  242.     long                             dataRate;
  243.     long                             frameDuration;
  244.     CodecQ                             minSpatialQuality;
  245.     CodecQ                             minTemporalQuality;
  246. };
  247. typedef struct SCDataRateSettings        SCDataRateSettings;
  248.  
  249. struct SCExtendedProcs {
  250.     SCModalFilterUPP                 filterProc;
  251.     SCModalHookUPP                     hookProc;
  252.     long                             refcon;
  253.     Str31                             customName;
  254. };
  255. typedef struct SCExtendedProcs            SCExtendedProcs;
  256. /*    Get/SetInfo selectors*/
  257.  
  258. enum {
  259.     scSpatialSettingsType        = FOUR_CHAR_CODE('sptl'),        /* pointer to SCSpatialSettings struct*/
  260.     scTemporalSettingsType        = FOUR_CHAR_CODE('tprl'),        /* pointer to SCTemporalSettings struct*/
  261.     scDataRateSettingsType        = FOUR_CHAR_CODE('drat'),        /* pointer to SCDataRateSettings struct*/
  262.     scColorTableType            = FOUR_CHAR_CODE('clut'),        /* pointer to CTabHandle*/
  263.     scProgressProcType            = FOUR_CHAR_CODE('prog'),        /* pointer to ProgressRecord struct*/
  264.     scExtendedProcsType            = FOUR_CHAR_CODE('xprc'),        /* pointer to SCExtendedProcs struct*/
  265.     scPreferenceFlagsType        = FOUR_CHAR_CODE('pref'),        /* pointer to long*/
  266.     scSettingsStateType            = FOUR_CHAR_CODE('ssta'),        /* pointer to Handle*/
  267.     scSequenceIDType            = FOUR_CHAR_CODE('sequ'),        /* pointer to ImageSequence*/
  268.     scWindowPositionType        = FOUR_CHAR_CODE('wndw'),        /* pointer to Point*/
  269.     scCodecFlagsType            = FOUR_CHAR_CODE('cflg'),        /* pointer to CodecFlags*/
  270.     scCodecSettingsType            = FOUR_CHAR_CODE('cdec'),        /* pointer to Handle*/
  271.     scForceKeyValueType            = FOUR_CHAR_CODE('ksim'),        /* pointer to long*/
  272.     scSoundSampleRateType        = FOUR_CHAR_CODE('ssrt'),        /* pointer to UnsignedFixed*/
  273.     scSoundSampleSizeType        = FOUR_CHAR_CODE('ssss'),        /* pointer to short*/
  274.     scSoundChannelCountType        = FOUR_CHAR_CODE('sscc'),        /* pointer to short*/
  275.     scSoundCompressionType        = FOUR_CHAR_CODE('ssct'),        /* pointer to OSType*/
  276.     scCompressionListType        = FOUR_CHAR_CODE('ctyl')        /* pointer to OSType Handle*/
  277. };
  278.  
  279. /*    scTypeNotFoundErr returned by Get/SetInfo when type cannot be found.*/
  280.  
  281.  
  282.  
  283. struct SCParams {
  284.     long                             flags;
  285.     CodecType                         theCodecType;
  286.     CodecComponent                     theCodec;
  287.     CodecQ                             spatialQuality;
  288.     CodecQ                             temporalQuality;
  289.     short                             depth;
  290.     Fixed                             frameRate;
  291.     long                             keyFrameRate;
  292.     long                             reserved1;
  293.     long                             reserved2;
  294. };
  295. typedef struct SCParams                    SCParams;
  296.  
  297. enum {
  298.     scGetCompression            = 1,
  299.     scShowMotionSettings        = 1L << 0,
  300.     scSettingsChangedItem        = -1
  301. };
  302.  
  303.  
  304. enum {
  305.     scCompressFlagIgnoreIdenticalFrames = 1
  306. };
  307.  
  308. /* QTAtomTypes for atoms found in settings atom containers*/
  309.  
  310. enum {
  311.     kQTSettingsVideo            = FOUR_CHAR_CODE('vide'),        /* Container for video/image compression related atoms (Get/SetInfo selectors)*/
  312.     kQTSettingsSound            = FOUR_CHAR_CODE('soun')        /* Container for sound compression related atoms (Get/SetInfo selectors)*/
  313. };
  314.  
  315.  
  316. #define SCGetCompression(ci, params, where) SCGetCompressionExtended(ci,params,where,0,0,0,0)
  317. /** These are Progress procedures **/
  318. EXTERN_API( ComponentResult )
  319. SCGetCompressionExtended        (ComponentInstance         ci,
  320.                                  SCParams *                params,
  321.                                  Point                     where,
  322.                                  SCModalFilterUPP         filterProc,
  323.                                  SCModalHookUPP         hookProc,
  324.                                  long                     refcon,
  325.                                  StringPtr                 customName)                            FIVEWORDINLINE(0x2F3C, 0x0018, 0x0001, 0x7000, 0xA82A);
  326.  
  327. EXTERN_API( ComponentResult )
  328. SCPositionRect                    (ComponentInstance         ci,
  329.                                  Rect *                    rp,
  330.                                  Point *                where)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0002, 0x7000, 0xA82A);
  331.  
  332. EXTERN_API( ComponentResult )
  333. SCPositionDialog                (ComponentInstance         ci,
  334.                                  short                     id,
  335.                                  Point *                where)                                FIVEWORDINLINE(0x2F3C, 0x0006, 0x0003, 0x7000, 0xA82A);
  336.  
  337. EXTERN_API( ComponentResult )
  338. SCSetTestImagePictHandle        (ComponentInstance         ci,
  339.                                  PicHandle                 testPict,
  340.                                  Rect *                    testRect,
  341.                                  short                     testFlags)                            FIVEWORDINLINE(0x2F3C, 0x000A, 0x0004, 0x7000, 0xA82A);
  342.  
  343. EXTERN_API( ComponentResult )
  344. SCSetTestImagePictFile            (ComponentInstance         ci,
  345.                                  short                     testFileRef,
  346.                                  Rect *                    testRect,
  347.                                  short                     testFlags)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0005, 0x7000, 0xA82A);
  348.  
  349. EXTERN_API( ComponentResult )
  350. SCSetTestImagePixMap            (ComponentInstance         ci,
  351.                                  PixMapHandle             testPixMap,
  352.                                  Rect *                    testRect,
  353.                                  short                     testFlags)                            FIVEWORDINLINE(0x2F3C, 0x000A, 0x0006, 0x7000, 0xA82A);
  354.  
  355. EXTERN_API( ComponentResult )
  356. SCGetBestDeviceRect                (ComponentInstance         ci,
  357.                                  Rect *                    r)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0007, 0x7000, 0xA82A);
  358.  
  359.  
  360. EXTERN_API( ComponentResult )
  361. SCRequestImageSettings            (ComponentInstance         ci)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x000A, 0x7000, 0xA82A);
  362.  
  363. EXTERN_API( ComponentResult )
  364. SCCompressImage                    (ComponentInstance         ci,
  365.                                  PixMapHandle             src,
  366.                                  const Rect *            srcRect,
  367.                                  ImageDescriptionHandle * desc,
  368.                                  Handle *                data)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x000B, 0x7000, 0xA82A);
  369.  
  370. EXTERN_API( ComponentResult )
  371. SCCompressPicture                (ComponentInstance         ci,
  372.                                  PicHandle                 srcPicture,
  373.                                  PicHandle                 dstPicture)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x000C, 0x7000, 0xA82A);
  374.  
  375. EXTERN_API( ComponentResult )
  376. SCCompressPictureFile            (ComponentInstance         ci,
  377.                                  short                     srcRefNum,
  378.                                  short                     dstRefNum)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000D, 0x7000, 0xA82A);
  379.  
  380. EXTERN_API( ComponentResult )
  381. SCRequestSequenceSettings        (ComponentInstance         ci)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x000E, 0x7000, 0xA82A);
  382.  
  383. EXTERN_API( ComponentResult )
  384. SCCompressSequenceBegin            (ComponentInstance         ci,
  385.                                  PixMapHandle             src,
  386.                                  const Rect *            srcRect,
  387.                                  ImageDescriptionHandle * desc)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x000F, 0x7000, 0xA82A);
  388.  
  389. EXTERN_API( ComponentResult )
  390. SCCompressSequenceFrame            (ComponentInstance         ci,
  391.                                  PixMapHandle             src,
  392.                                  const Rect *            srcRect,
  393.                                  Handle *                data,
  394.                                  long *                    dataSize,
  395.                                  short *                notSyncFlag)                        FIVEWORDINLINE(0x2F3C, 0x0014, 0x0010, 0x7000, 0xA82A);
  396.  
  397. EXTERN_API( ComponentResult )
  398. SCCompressSequenceEnd            (ComponentInstance         ci)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0011, 0x7000, 0xA82A);
  399.  
  400. EXTERN_API( ComponentResult )
  401. SCDefaultPictHandleSettings        (ComponentInstance         ci,
  402.                                  PicHandle                 srcPicture,
  403.                                  short                     motion)                                FIVEWORDINLINE(0x2F3C, 0x0006, 0x0012, 0x7000, 0xA82A);
  404.  
  405. EXTERN_API( ComponentResult )
  406. SCDefaultPictFileSettings        (ComponentInstance         ci,
  407.                                  short                     srcRef,
  408.                                  short                     motion)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0013, 0x7000, 0xA82A);
  409.  
  410. EXTERN_API( ComponentResult )
  411. SCDefaultPixMapSettings            (ComponentInstance         ci,
  412.                                  PixMapHandle             src,
  413.                                  short                     motion)                                FIVEWORDINLINE(0x2F3C, 0x0006, 0x0014, 0x7000, 0xA82A);
  414.  
  415. EXTERN_API( ComponentResult )
  416. SCGetInfo                        (ComponentInstance         ci,
  417.                                  OSType                 infoType,
  418.                                  void *                    info)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0015, 0x7000, 0xA82A);
  419.  
  420. EXTERN_API( ComponentResult )
  421. SCSetInfo                        (ComponentInstance         ci,
  422.                                  OSType                 infoType,
  423.                                  void *                    info)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0016, 0x7000, 0xA82A);
  424.  
  425. EXTERN_API( ComponentResult )
  426. SCNewGWorld                        (ComponentInstance         ci,
  427.                                  GWorldPtr *            gwp,
  428.                                  Rect *                    rp,
  429.                                  GWorldFlags             flags)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0017, 0x7000, 0xA82A);
  430.  
  431. EXTERN_API( ComponentResult )
  432. SCSetCompressFlags                (ComponentInstance         ci,
  433.                                  long                     flags)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0018, 0x7000, 0xA82A);
  434.  
  435. EXTERN_API( ComponentResult )
  436. SCGetCompressFlags                (ComponentInstance         ci,
  437.                                  long *                    flags)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0019, 0x7000, 0xA82A);
  438.  
  439. EXTERN_API( ComponentResult )
  440. SCGetSettingsAsText                (ComponentInstance         ci,
  441.                                  Handle *                text)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001A, 0x7000, 0xA82A);
  442.  
  443. EXTERN_API( ComponentResult )
  444. SCGetSettingsAsAtomContainer    (ComponentInstance         ci,
  445.                                  QTAtomContainer *        settings)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x001B, 0x7000, 0xA82A);
  446.  
  447. EXTERN_API( ComponentResult )
  448. SCSetSettingsFromAtomContainer    (ComponentInstance         ci,
  449.                                  QTAtomContainer         settings)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x001C, 0x7000, 0xA82A);
  450.  
  451.  
  452.  
  453.  
  454.  
  455. enum {
  456.     TweenComponentType            = FOUR_CHAR_CODE('twen')
  457. };
  458.  
  459.  
  460. typedef ComponentInstance                 TweenerComponent;
  461. EXTERN_API( ComponentResult )
  462. TweenerInitialize                (TweenerComponent         tc,
  463.                                  QTAtomContainer         container,
  464.                                  QTAtom                 tweenAtom,
  465.                                  QTAtom                 dataAtom)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x0001, 0x7000, 0xA82A);
  466.  
  467. EXTERN_API( ComponentResult )
  468. TweenerDoTween                    (TweenerComponent         tc,
  469.                                  TweenRecord *            tr)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0002, 0x7000, 0xA82A);
  470.  
  471. EXTERN_API( ComponentResult )
  472. TweenerReset                    (TweenerComponent         tc)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0003, 0x7000, 0xA82A);
  473.  
  474.  
  475.  
  476.  
  477. enum {
  478.     TCSourceRefNameType            = FOUR_CHAR_CODE('name')
  479. };
  480.  
  481.  
  482. enum {
  483.     tcDropFrame                    = 1 << 0,
  484.     tc24HourMax                    = 1 << 1,
  485.     tcNegTimesOK                = 1 << 2,
  486.     tcCounter                    = 1 << 3
  487. };
  488.  
  489.  
  490. struct TimeCodeDef {
  491.     long                             flags;                        /* drop-frame, etc.*/
  492.     TimeScale                         fTimeScale;                    /* time scale of frameDuration (eg. 2997)*/
  493.     TimeValue                         frameDuration;                /* duration of each frame (eg. 100)*/
  494.     UInt8                             numFrames;                    /* frames/sec for timecode (eg. 30) OR frames/tick for counter mode*/
  495.     UInt8                             padding;                    /* unused padding byte*/
  496. };
  497. typedef struct TimeCodeDef                TimeCodeDef;
  498.  
  499. enum {
  500.     tctNegFlag                    = 0x80                            /* negative bit is in minutes*/
  501. };
  502.  
  503.  
  504. struct TimeCodeTime {
  505.     UInt8                             hours;
  506.     UInt8                             minutes;
  507.     UInt8                             seconds;
  508.     UInt8                             frames;
  509. };
  510. typedef struct TimeCodeTime                TimeCodeTime;
  511.  
  512. struct TimeCodeCounter {
  513.     long                             counter;
  514. };
  515. typedef struct TimeCodeCounter            TimeCodeCounter;
  516.  
  517. union TimeCodeRecord {
  518.     TimeCodeTime                     t;
  519.     TimeCodeCounter                 c;
  520. };
  521. typedef union TimeCodeRecord            TimeCodeRecord;
  522.  
  523. struct TimeCodeDescription {
  524.     long                             descSize;                    /* standard sample description header*/
  525.     long                             dataFormat;
  526.     long                             resvd1;
  527.     short                             resvd2;
  528.     short                             dataRefIndex;
  529.     long                             flags;                        /* timecode specific stuff*/
  530.     TimeCodeDef                     timeCodeDef;
  531.     long                             srcRef[1];
  532. };
  533. typedef struct TimeCodeDescription        TimeCodeDescription;
  534. typedef TimeCodeDescription *            TimeCodeDescriptionPtr;
  535. typedef TimeCodeDescriptionPtr *        TimeCodeDescriptionHandle;
  536.  
  537. enum {
  538.     tcdfShowTimeCode            = 1 << 0
  539. };
  540.  
  541.  
  542.  
  543. struct TCTextOptions {
  544.     short                             txFont;
  545.     short                             txFace;
  546.     short                             txSize;
  547.     short                             pad;                        /* let's make it longword aligned - thanks.. */
  548.     RGBColor                         foreColor;
  549.     RGBColor                         backColor;
  550. };
  551. typedef struct TCTextOptions            TCTextOptions;
  552. typedef TCTextOptions *                    TCTextOptionsPtr;
  553. EXTERN_API( HandlerError )
  554. TCGetCurrentTimeCode            (MediaHandler             mh,
  555.                                  long *                    frameNum,
  556.                                  TimeCodeDef *            tcdef,
  557.                                  TimeCodeRecord *        tcrec,
  558.                                  UserData *                srcRefH)                            FIVEWORDINLINE(0x2F3C, 0x0010, 0x0101, 0x7000, 0xA82A);
  559.  
  560. EXTERN_API( HandlerError )
  561. TCGetTimeCodeAtTime                (MediaHandler             mh,
  562.                                  TimeValue                 mediaTime,
  563.                                  long *                    frameNum,
  564.                                  TimeCodeDef *            tcdef,
  565.                                  TimeCodeRecord *        tcdata,
  566.                                  UserData *                srcRefH)                            FIVEWORDINLINE(0x2F3C, 0x0014, 0x0102, 0x7000, 0xA82A);
  567.  
  568. EXTERN_API( HandlerError )
  569. TCTimeCodeToString                (MediaHandler             mh,
  570.                                  TimeCodeDef *            tcdef,
  571.                                  TimeCodeRecord *        tcrec,
  572.                                  StringPtr                 tcStr)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0103, 0x7000, 0xA82A);
  573.  
  574. EXTERN_API( HandlerError )
  575. TCTimeCodeToFrameNumber            (MediaHandler             mh,
  576.                                  TimeCodeDef *            tcdef,
  577.                                  TimeCodeRecord *        tcrec,
  578.                                  long *                    frameNumber)                        FIVEWORDINLINE(0x2F3C, 0x000C, 0x0104, 0x7000, 0xA82A);
  579.  
  580. EXTERN_API( HandlerError )
  581. TCFrameNumberToTimeCode            (MediaHandler             mh,
  582.                                  long                     frameNumber,
  583.                                  TimeCodeDef *            tcdef,
  584.                                  TimeCodeRecord *        tcrec)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0105, 0x7000, 0xA82A);
  585.  
  586. EXTERN_API( HandlerError )
  587. TCGetSourceRef                    (MediaHandler             mh,
  588.                                  TimeCodeDescriptionHandle  tcdH,
  589.                                  UserData *                srefH)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0106, 0x7000, 0xA82A);
  590.  
  591. EXTERN_API( HandlerError )
  592. TCSetSourceRef                    (MediaHandler             mh,
  593.                                  TimeCodeDescriptionHandle  tcdH,
  594.                                  UserData                 srefH)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0107, 0x7000, 0xA82A);
  595.  
  596. EXTERN_API( HandlerError )
  597. TCSetTimeCodeFlags                (MediaHandler             mh,
  598.                                  long                     flags,
  599.                                  long                     flagsMask)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0108, 0x7000, 0xA82A);
  600.  
  601. EXTERN_API( HandlerError )
  602. TCGetTimeCodeFlags                (MediaHandler             mh,
  603.                                  long *                    flags)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0109, 0x7000, 0xA82A);
  604.  
  605. EXTERN_API( HandlerError )
  606. TCSetDisplayOptions                (MediaHandler             mh,
  607.                                  TCTextOptionsPtr         textOptions)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x010A, 0x7000, 0xA82A);
  608.  
  609. EXTERN_API( HandlerError )
  610. TCGetDisplayOptions                (MediaHandler             mh,
  611.                                  TCTextOptionsPtr         textOptions)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x010B, 0x7000, 0xA82A);
  612.  
  613.  
  614.  
  615.  
  616. typedef ComponentInstance                 MovieImportComponent;
  617. typedef ComponentInstance                 MovieExportComponent;
  618.  
  619. enum {
  620.     MovieImportType                = FOUR_CHAR_CODE('eat '),
  621.     MovieExportType                = FOUR_CHAR_CODE('spit')
  622. };
  623.  
  624.  
  625. enum {
  626.     canMovieImportHandles        = 1 << 0,
  627.     canMovieImportFiles            = 1 << 1,
  628.     hasMovieImportUserInterface    = 1 << 2,
  629.     canMovieExportHandles        = 1 << 3,
  630.     canMovieExportFiles            = 1 << 4,
  631.     hasMovieExportUserInterface    = 1 << 5,
  632.     dontAutoFileMovieImport        = 1 << 6,
  633.     canMovieExportAuxDataHandle    = 1 << 7,
  634.     canMovieImportValidateHandles = 1 << 8,
  635.     canMovieImportValidateFile    = 1 << 9,
  636.     dontRegisterWithEasyOpen    = 1 << 10,
  637.     canMovieImportInPlace        = 1 << 11,
  638.     movieImportSubTypeIsFileExtension = 1 << 12,
  639.     canMovieImportPartial        = 1 << 13,
  640.     hasMovieImportMIMEList        = 1 << 14,
  641.     canMovieExportFromProcedures = 1 << 15,
  642.     canMovieExportValidateMovie    = 1L << 16,
  643.     movieExportNeedsResourceFork = 1L << 17,
  644.     canMovieImportDataReferences = 1L << 18,
  645.     movieExportMustGetSourceMediaType = 1L << 19,
  646.     reservedForUseByGraphicsImporters = 1L << 23
  647. };
  648.  
  649.  
  650. enum {
  651.     movieImportCreateTrack        = 1,
  652.     movieImportInParallel        = 2,
  653.     movieImportMustUseTrack        = 4
  654. };
  655.  
  656.  
  657. enum {
  658.     movieImportResultUsedMultipleTracks = 8
  659. };
  660.  
  661.  
  662. enum {
  663.     kMovieExportTextOnly        = 0,
  664.     kMovieExportAbsoluteTime    = 1,
  665.     kMovieExportRelativeTime    = 2
  666. };
  667.  
  668.  
  669. enum {
  670.     kMIDIImportSilenceBefore    = 1 << 0,
  671.     kMIDIImportSilenceAfter        = 1 << 1,
  672.     kMIDIImport20Playable        = 1 << 2,
  673.     kMIDIImportWantLyrics        = 1 << 3
  674. };
  675.  
  676.  
  677. enum {
  678.     kMimeInfoMimeTypeTag        = FOUR_CHAR_CODE('mime'),
  679.     kMimeInfoFileExtensionTag    = FOUR_CHAR_CODE('ext '),
  680.     kMimeInfoDescriptionTag        = FOUR_CHAR_CODE('desc'),
  681.     kMimeInfoGroupTag            = FOUR_CHAR_CODE('grop'),
  682.     kMimeInfoDoNotOverrideExistingFileTypeAssociation = FOUR_CHAR_CODE('nofa')
  683. };
  684.  
  685.  
  686. enum {
  687.     kQTFileTypeAIFF                = FOUR_CHAR_CODE('AIFF'),
  688.     kQTFileTypeAIFC                = FOUR_CHAR_CODE('AIFC'),
  689.     kQTFileTypeDVC                = FOUR_CHAR_CODE('dvc!'),
  690.     kQTFileTypeMIDI                = FOUR_CHAR_CODE('Midi'),
  691.     kQTFileTypePicture            = FOUR_CHAR_CODE('PICT'),
  692.     kQTFileTypeMovie            = FOUR_CHAR_CODE('MooV'),
  693.     kQTFileTypeText                = FOUR_CHAR_CODE('TEXT'),
  694.     kQTFileTypeWave                = FOUR_CHAR_CODE('WAVE'),
  695.     kQTFileTypeSystemSevenSound    = FOUR_CHAR_CODE('sfil'),
  696.     kQTFileTypeMuLaw            = FOUR_CHAR_CODE('ULAW'),
  697.     kQTFileTypeAVI                = FOUR_CHAR_CODE('VfW '),
  698.     kQTFileTypeSoundDesignerII    = FOUR_CHAR_CODE('Sd2f'),
  699.     kQTFileTypeAudioCDTrack        = FOUR_CHAR_CODE('trak'),
  700.     kQTFileTypePICS                = FOUR_CHAR_CODE('PICS'),
  701.     kQTFileTypeGIF                = FOUR_CHAR_CODE('GIFf'),
  702.     kQTFileTypePhotoShop        = FOUR_CHAR_CODE('8BPS'),
  703.     kQTFileTypeSGIImage            = FOUR_CHAR_CODE('.SGI'),
  704.     kQTFileTypeBMP                = FOUR_CHAR_CODE('BMPf'),
  705.     kQTFileTypeJPEG                = FOUR_CHAR_CODE('JPEG'),
  706.     kQTFileTypeJFIF                = FOUR_CHAR_CODE('JPEG'),
  707.     kQTFileTypeMacPaint            = FOUR_CHAR_CODE('PNTG'),
  708.     kQTFileTypeTargaImage        = FOUR_CHAR_CODE('TPIC'),
  709.     kQTFileTypeQuickDrawGXPicture = FOUR_CHAR_CODE('qdgx'),
  710.     kQTFileTypeQuickTimeImage    = FOUR_CHAR_CODE('qtif'),
  711.     kQTFileType3DMF                = FOUR_CHAR_CODE('3DMF')
  712. };
  713.  
  714. /* QTAtomTypes for atoms in import/export settings containers*/
  715.  
  716. enum {
  717.     kQTSettingsEffect            = FOUR_CHAR_CODE('effe'),        /* Parent atom whose contents are atoms of an effects description*/
  718.     kQTSettingsMIDI                = FOUR_CHAR_CODE('MIDI'),        /* MIDI import related container*/
  719.     kQTSettingsMIDISettingFlags    = FOUR_CHAR_CODE('sttg'),        /* MIDI import settings    (UInt32)*/
  720.     kQTSettingsText                = FOUR_CHAR_CODE('text'),        /* Text related container*/
  721.     kQTSettingsTextDescription    = FOUR_CHAR_CODE('desc'),        /* Text settings (TextDescription record)*/
  722.     kQTSettingsTextSize            = FOUR_CHAR_CODE('size'),        /* Width/height to create (FixedPoint)*/
  723.     kQTSettingsTextSettingFlags    = FOUR_CHAR_CODE('sttg'),        /* Text export settings (UInt32)*/
  724.     kQTSettingsTextTimeFraction    = FOUR_CHAR_CODE('timf'),        /* Movie time fraction for export (UInt32)*/
  725.     kQTSettingsTime                = FOUR_CHAR_CODE('time'),        /* Time related container*/
  726.     kQTSettingsAudioCDTrack        = FOUR_CHAR_CODE('trak'),        /* Audio CD track related container*/
  727.     kQTSettingsAudioCDTrackRateShift = FOUR_CHAR_CODE('rshf')    /* Rate shift to be performed (SInt16)*/
  728. };
  729.  
  730.  
  731.  
  732.  
  733.  
  734. struct MovieExportGetDataParams {
  735.     long                             recordSize;
  736.  
  737.     long                             trackID;
  738.  
  739.     TimeScale                         sourceTimeScale;
  740.     TimeValue                         requestedTime;
  741.     TimeValue                         actualTime;
  742.  
  743.     Ptr                             dataPtr;
  744.     long                             dataSize;
  745.  
  746.     SampleDescriptionHandle         desc;
  747.     OSType                             descType;
  748.     long                             descSeed;
  749.  
  750.     long                             requestedSampleCount;
  751.     long                             actualSampleCount;
  752.     TimeValue                         durationPerSample;
  753.     long                             sampleFlags;
  754. };
  755. typedef struct MovieExportGetDataParams    MovieExportGetDataParams;
  756. typedef CALLBACK_API( OSErr , MovieExportGetDataProcPtr )(void *refCon, MovieExportGetDataParams *params);
  757. typedef CALLBACK_API( OSErr , MovieExportGetPropertyProcPtr )(void *refcon, long trackID, OSType propertyType, void *propertyValue);
  758. typedef STACK_UPP_TYPE(MovieExportGetDataProcPtr)                 MovieExportGetDataUPP;
  759. typedef STACK_UPP_TYPE(MovieExportGetPropertyProcPtr)             MovieExportGetPropertyUPP;
  760. enum { uppSCModalFilterProcInfo = 0x00003FD0 };                 /* pascal 1_byte Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  761. enum { uppSCModalHookProcInfo = 0x00003EE0 };                     /* pascal 2_bytes Func(4_bytes, 2_bytes, 4_bytes, 4_bytes) */
  762. enum { uppMovieExportGetDataProcInfo = 0x000003E0 };             /* pascal 2_bytes Func(4_bytes, 4_bytes) */
  763. enum { uppMovieExportGetPropertyProcInfo = 0x00003FE0 };         /* pascal 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  764. #define NewSCModalFilterProc(userRoutine)                         (SCModalFilterUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSCModalFilterProcInfo, GetCurrentArchitecture())
  765. #define NewSCModalHookProc(userRoutine)                         (SCModalHookUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSCModalHookProcInfo, GetCurrentArchitecture())
  766. #define NewMovieExportGetDataProc(userRoutine)                     (MovieExportGetDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppMovieExportGetDataProcInfo, GetCurrentArchitecture())
  767. #define NewMovieExportGetPropertyProc(userRoutine)                 (MovieExportGetPropertyUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppMovieExportGetPropertyProcInfo, GetCurrentArchitecture())
  768. #define CallSCModalFilterProc(userRoutine, theDialog, theEvent, itemHit, refcon)  CALL_FOUR_PARAMETER_UPP((userRoutine), uppSCModalFilterProcInfo, (theDialog), (theEvent), (itemHit), (refcon))
  769. #define CallSCModalHookProc(userRoutine, theDialog, itemHit, params, refcon)  CALL_FOUR_PARAMETER_UPP((userRoutine), uppSCModalHookProcInfo, (theDialog), (itemHit), (params), (refcon))
  770. #define CallMovieExportGetDataProc(userRoutine, refCon, params)  CALL_TWO_PARAMETER_UPP((userRoutine), uppMovieExportGetDataProcInfo, (refCon), (params))
  771. #define CallMovieExportGetPropertyProc(userRoutine, refcon, trackID, propertyType, propertyValue)  CALL_FOUR_PARAMETER_UPP((userRoutine), uppMovieExportGetPropertyProcInfo, (refcon), (trackID), (propertyType), (propertyValue))
  772. EXTERN_API( ComponentResult )
  773. MovieImportHandle                (MovieImportComponent     ci,
  774.                                  Handle                 dataH,
  775.                                  Movie                     theMovie,
  776.                                  Track                     targetTrack,
  777.                                  Track *                usedTrack,
  778.                                  TimeValue                 atTime,
  779.                                  TimeValue *            addedDuration,
  780.                                  long                     inFlags,
  781.                                  long *                    outFlags)                            FIVEWORDINLINE(0x2F3C, 0x0020, 0x0001, 0x7000, 0xA82A);
  782.  
  783. EXTERN_API( ComponentResult )
  784. MovieImportFile                    (MovieImportComponent     ci,
  785.                                  const FSSpec *            theFile,
  786.                                  Movie                     theMovie,
  787.                                  Track                     targetTrack,
  788.                                  Track *                usedTrack,
  789.                                  TimeValue                 atTime,
  790.                                  TimeValue *            addedDuration,
  791.                                  long                     inFlags,
  792.                                  long *                    outFlags)                            FIVEWORDINLINE(0x2F3C, 0x0020, 0x0002, 0x7000, 0xA82A);
  793.  
  794. EXTERN_API( ComponentResult )
  795. MovieImportSetSampleDuration    (MovieImportComponent     ci,
  796.                                  TimeValue                 duration,
  797.                                  TimeScale                 scale)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0003, 0x7000, 0xA82A);
  798.  
  799. EXTERN_API( ComponentResult )
  800. MovieImportSetSampleDescription    (MovieImportComponent     ci,
  801.                                  SampleDescriptionHandle  desc,
  802.                                  OSType                 mediaType)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0004, 0x7000, 0xA82A);
  803.  
  804. EXTERN_API( ComponentResult )
  805. MovieImportSetMediaFile            (MovieImportComponent     ci,
  806.                                  AliasHandle             alias)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0005, 0x7000, 0xA82A);
  807.  
  808. EXTERN_API( ComponentResult )
  809. MovieImportSetDimensions        (MovieImportComponent     ci,
  810.                                  Fixed                     width,
  811.                                  Fixed                     height)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0006, 0x7000, 0xA82A);
  812.  
  813. EXTERN_API( ComponentResult )
  814. MovieImportSetChunkSize            (MovieImportComponent     ci,
  815.                                  long                     chunkSize)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0007, 0x7000, 0xA82A);
  816.  
  817. EXTERN_API( ComponentResult )
  818. MovieImportSetProgressProc        (MovieImportComponent     ci,
  819.                                  MovieProgressUPP         proc,
  820.                                  long                     refcon)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0008, 0x7000, 0xA82A);
  821.  
  822. EXTERN_API( ComponentResult )
  823. MovieImportSetAuxiliaryData        (MovieImportComponent     ci,
  824.                                  Handle                 data,
  825.                                  OSType                 handleType)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0009, 0x7000, 0xA82A);
  826.  
  827. EXTERN_API( ComponentResult )
  828. MovieImportSetFromScrap            (MovieImportComponent     ci,
  829.                                  Boolean                 fromScrap)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x000A, 0x7000, 0xA82A);
  830.  
  831. EXTERN_API( ComponentResult )
  832. MovieImportDoUserDialog            (MovieImportComponent     ci,
  833.                                  const FSSpec *            theFile,
  834.                                  Handle                 theData,
  835.                                  Boolean *                canceled)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x000B, 0x7000, 0xA82A);
  836.  
  837. EXTERN_API( ComponentResult )
  838. MovieImportSetDuration            (MovieImportComponent     ci,
  839.                                  TimeValue                 duration)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000C, 0x7000, 0xA82A);
  840.  
  841. EXTERN_API( ComponentResult )
  842. MovieImportGetAuxiliaryDataType    (MovieImportComponent     ci,
  843.                                  OSType *                auxType)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000D, 0x7000, 0xA82A);
  844.  
  845. EXTERN_API( ComponentResult )
  846. MovieImportValidate                (MovieImportComponent     ci,
  847.                                  const FSSpec *            theFile,
  848.                                  Handle                 theData,
  849.                                  Boolean *                valid)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x000E, 0x7000, 0xA82A);
  850.  
  851. EXTERN_API( ComponentResult )
  852. MovieImportGetFileType            (MovieImportComponent     ci,
  853.                                  OSType *                fileType)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000F, 0x7000, 0xA82A);
  854.  
  855. EXTERN_API( ComponentResult )
  856. MovieImportDataRef                (MovieImportComponent     ci,
  857.                                  Handle                 dataRef,
  858.                                  OSType                 dataRefType,
  859.                                  Movie                     theMovie,
  860.                                  Track                     targetTrack,
  861.                                  Track *                usedTrack,
  862.                                  TimeValue                 atTime,
  863.                                  TimeValue *            addedDuration,
  864.                                  long                     inFlags,
  865.                                  long *                    outFlags)                            FIVEWORDINLINE(0x2F3C, 0x0024, 0x0010, 0x7000, 0xA82A);
  866.  
  867. EXTERN_API( ComponentResult )
  868. MovieImportGetSampleDescription    (MovieImportComponent     ci,
  869.                                  SampleDescriptionHandle * desc,
  870.                                  OSType *                mediaType)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0011, 0x7000, 0xA82A);
  871.  
  872. EXTERN_API( ComponentResult )
  873. MovieImportGetMIMETypeList        (MovieImportComponent     ci,
  874.                                  QTAtomContainer *        mimeInfo)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0012, 0x7000, 0xA82A);
  875.  
  876. EXTERN_API( ComponentResult )
  877. MovieImportSetOffsetAndLimit    (MovieImportComponent     ci,
  878.                                  unsigned long             offset,
  879.                                  unsigned long             limit)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0013, 0x7000, 0xA82A);
  880.  
  881. EXTERN_API( ComponentResult )
  882. MovieImportGetSettingsAsAtomContainer (MovieImportComponent  ci,
  883.                                  QTAtomContainer *        settings)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0014, 0x7000, 0xA82A);
  884.  
  885. EXTERN_API( ComponentResult )
  886. MovieImportSetSettingsFromAtomContainer (MovieImportComponent  ci,
  887.                                  QTAtomContainer         settings)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0015, 0x7000, 0xA82A);
  888.  
  889. EXTERN_API( ComponentResult )
  890. MovieExportToHandle                (MovieExportComponent     ci,
  891.                                  Handle                 dataH,
  892.                                  Movie                     theMovie,
  893.                                  Track                     onlyThisTrack,
  894.                                  TimeValue                 startTime,
  895.                                  TimeValue                 duration)                            FIVEWORDINLINE(0x2F3C, 0x0014, 0x0080, 0x7000, 0xA82A);
  896.  
  897. EXTERN_API( ComponentResult )
  898. MovieExportToFile                (MovieExportComponent     ci,
  899.                                  const FSSpec *            theFile,
  900.                                  Movie                     theMovie,
  901.                                  Track                     onlyThisTrack,
  902.                                  TimeValue                 startTime,
  903.                                  TimeValue                 duration)                            FIVEWORDINLINE(0x2F3C, 0x0014, 0x0081, 0x7000, 0xA82A);
  904.  
  905. EXTERN_API( ComponentResult )
  906. MovieExportGetAuxiliaryData        (MovieExportComponent     ci,
  907.                                  Handle                 dataH,
  908.                                  OSType *                handleType)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0083, 0x7000, 0xA82A);
  909.  
  910. EXTERN_API( ComponentResult )
  911. MovieExportSetProgressProc        (MovieExportComponent     ci,
  912.                                  MovieProgressUPP         proc,
  913.                                  long                     refcon)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0084, 0x7000, 0xA82A);
  914.  
  915. EXTERN_API( ComponentResult )
  916. MovieExportSetSampleDescription    (MovieExportComponent     ci,
  917.                                  SampleDescriptionHandle  desc,
  918.                                  OSType                 mediaType)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0085, 0x7000, 0xA82A);
  919.  
  920. EXTERN_API( ComponentResult )
  921. MovieExportDoUserDialog            (MovieExportComponent     ci,
  922.                                  Movie                     theMovie,
  923.                                  Track                     onlyThisTrack,
  924.                                  TimeValue                 startTime,
  925.                                  TimeValue                 duration,
  926.                                  Boolean *                canceled)                            FIVEWORDINLINE(0x2F3C, 0x0014, 0x0086, 0x7000, 0xA82A);
  927.  
  928. EXTERN_API( ComponentResult )
  929. MovieExportGetCreatorType        (MovieExportComponent     ci,
  930.                                  OSType *                creator)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0087, 0x7000, 0xA82A);
  931.  
  932. EXTERN_API( ComponentResult )
  933. MovieExportToDataRef            (MovieExportComponent     ci,
  934.                                  Handle                 dataRef,
  935.                                  OSType                 dataRefType,
  936.                                  Movie                     theMovie,
  937.                                  Track                     onlyThisTrack,
  938.                                  TimeValue                 startTime,
  939.                                  TimeValue                 duration)                            FIVEWORDINLINE(0x2F3C, 0x0018, 0x0088, 0x7000, 0xA82A);
  940.  
  941. EXTERN_API( ComponentResult )
  942. MovieExportFromProceduresToDataRef (MovieExportComponent  ci,
  943.                                  Handle                 dataRef,
  944.                                  OSType                 dataRefType)                        FIVEWORDINLINE(0x2F3C, 0x0008, 0x0089, 0x7000, 0xA82A);
  945.  
  946. EXTERN_API( ComponentResult )
  947. MovieExportAddDataSource        (MovieExportComponent     ci,
  948.                                  OSType                 trackType,
  949.                                  TimeScale                 scale,
  950.                                  long *                    trackID,
  951.                                  MovieExportGetPropertyUPP  getPropertyProc,
  952.                                  MovieExportGetDataUPP     getDataProc,
  953.                                  void *                    refCon)                                FIVEWORDINLINE(0x2F3C, 0x0018, 0x008A, 0x7000, 0xA82A);
  954.  
  955. EXTERN_API( ComponentResult )
  956. MovieExportValidate                (MovieExportComponent     ci,
  957.                                  Movie                     theMovie,
  958.                                  Track                     onlyThisTrack,
  959.                                  Boolean *                valid)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x008B, 0x7000, 0xA82A);
  960.  
  961. EXTERN_API( ComponentResult )
  962. MovieExportGetSettingsAsAtomContainer (MovieExportComponent  ci,
  963.                                  QTAtomContainer *        settings)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008C, 0x7000, 0xA82A);
  964.  
  965. EXTERN_API( ComponentResult )
  966. MovieExportSetSettingsFromAtomContainer (MovieExportComponent  ci,
  967.                                  QTAtomContainer         settings)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008D, 0x7000, 0xA82A);
  968.  
  969. EXTERN_API( ComponentResult )
  970. MovieExportGetFileNameExtension    (MovieExportComponent     ci,
  971.                                  OSType *                extension)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008E, 0x7000, 0xA82A);
  972.  
  973. EXTERN_API( ComponentResult )
  974. MovieExportGetShortFileTypeString (MovieExportComponent  ci,
  975.                                  Str255                 typeString)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008F, 0x7000, 0xA82A);
  976.  
  977. EXTERN_API( ComponentResult )
  978. MovieExportGetSourceMediaType    (MovieExportComponent     ci,
  979.                                  OSType *                mediaType)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0090, 0x7000, 0xA82A);
  980.  
  981. /* Text Export Display Info data structure*/
  982.  
  983. struct TextDisplayData {
  984.     long                             displayFlags;
  985.     long                             textJustification;
  986.     RGBColor                         bgColor;
  987.     Rect                             textBox;
  988.  
  989.     short                             beginHilite;
  990.     short                             endHilite;
  991.     RGBColor                         hiliteColor;
  992.     Boolean                         doHiliteColor;
  993.     SInt8                             filler;
  994.     TimeValue                         scrollDelayDur;
  995.     Point                             dropShadowOffset;
  996.     short                             dropShadowTransparency;
  997. };
  998. typedef struct TextDisplayData            TextDisplayData;
  999.  
  1000. typedef ComponentInstance                 TextExportComponent;
  1001. typedef ComponentInstance                 GraphicImageMovieImportComponent;
  1002. EXTERN_API( ComponentResult )
  1003. TextExportGetDisplayData        (TextExportComponent     ci,
  1004.                                  TextDisplayData *        textDisplay)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0100, 0x7000, 0xA82A);
  1005.  
  1006. EXTERN_API( ComponentResult )
  1007. TextExportGetTimeFraction        (TextExportComponent     ci,
  1008.                                  long *                    movieTimeFraction)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
  1009.  
  1010. EXTERN_API( ComponentResult )
  1011. TextExportSetTimeFraction        (TextExportComponent     ci,
  1012.                                  long                     movieTimeFraction)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0102, 0x7000, 0xA82A);
  1013.  
  1014. EXTERN_API( ComponentResult )
  1015. TextExportGetSettings            (TextExportComponent     ci,
  1016.                                  long *                    setting)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0103, 0x7000, 0xA82A);
  1017.  
  1018. EXTERN_API( ComponentResult )
  1019. TextExportSetSettings            (TextExportComponent     ci,
  1020.                                  long                     setting)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0104, 0x7000, 0xA82A);
  1021.  
  1022.  
  1023. EXTERN_API( ComponentResult )
  1024. MIDIImportGetSettings            (TextExportComponent     ci,
  1025.                                  long *                    setting)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0100, 0x7000, 0xA82A);
  1026.  
  1027. EXTERN_API( ComponentResult )
  1028. MIDIImportSetSettings            (TextExportComponent     ci,
  1029.                                  long                     setting)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
  1030.  
  1031. EXTERN_API( ComponentResult )
  1032. MovieExportNewGetDataAndPropertiesProcs (MovieExportComponent  ci,
  1033.                                  OSType                 trackType,
  1034.                                  TimeScale *            scale,
  1035.                                  Movie                     theMovie,
  1036.                                  Track                     theTrack,
  1037.                                  TimeValue                 startTime,
  1038.                                  TimeValue                 duration,
  1039.                                  MovieExportGetPropertyUPP * getPropertyProc,
  1040.                                  MovieExportGetDataUPP * getDataProc,
  1041.                                  void **                refCon)                                FIVEWORDINLINE(0x2F3C, 0x0024, 0x0100, 0x7000, 0xA82A);
  1042.  
  1043. EXTERN_API( ComponentResult )
  1044. MovieExportDisposeGetDataAndPropertiesProcs (MovieExportComponent  ci,
  1045.                                  MovieExportGetPropertyUPP  getPropertyProc,
  1046.                                  MovieExportGetDataUPP     getDataProc,
  1047.                                  void *                    refCon)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0101, 0x7000, 0xA82A);
  1048.  
  1049.  
  1050. enum {
  1051.     movieExportWidth            = FOUR_CHAR_CODE('wdth'),        /* pointer to Fixed*/
  1052.     movieExportHeight            = FOUR_CHAR_CODE('hegt'),        /* pointer to Fixed*/
  1053.     movieExportDuration            = FOUR_CHAR_CODE('dura'),        /* pointer to TimeRecord*/
  1054.     movieExportVideoFilter        = FOUR_CHAR_CODE('iflt')        /* pointer to QTAtomContainer*/
  1055. };
  1056.  
  1057. EXTERN_API( ComponentResult )
  1058. GraphicsImageImportSetSequenceEnabled (GraphicImageMovieImportComponent  ci,
  1059.                                  Boolean                 enable)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x0100, 0x7000, 0xA82A);
  1060.  
  1061. EXTERN_API( ComponentResult )
  1062. GraphicsImageImportGetSequenceEnabled (GraphicImageMovieImportComponent  ci,
  1063.                                  Boolean *                enable)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069.  
  1070.  
  1071.  
  1072. /***************
  1073.  
  1074.     File Preview Components
  1075.  
  1076. ***************/
  1077. typedef ComponentInstance                 pnotComponent;
  1078.  
  1079. enum {
  1080.     pnotComponentWantsEvents    = 1,
  1081.     pnotComponentNeedsNoCache    = 2
  1082. };
  1083.  
  1084.  
  1085. enum {
  1086.     ShowFilePreviewComponentType = FOUR_CHAR_CODE('pnot'),
  1087.     CreateFilePreviewComponentType = FOUR_CHAR_CODE('pmak')
  1088. };
  1089.  
  1090. EXTERN_API( ComponentResult )
  1091. PreviewShowData                    (pnotComponent             p,
  1092.                                  OSType                 dataType,
  1093.                                  Handle                 data,
  1094.                                  const Rect *            inHere)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0001, 0x7000, 0xA82A);
  1095.  
  1096. EXTERN_API( ComponentResult )
  1097. PreviewMakePreview                (pnotComponent             p,
  1098.                                  OSType *                previewType,
  1099.                                  Handle *                previewResult,
  1100.                                  const FSSpec *            sourceFile,
  1101.                                  ICMProgressProcRecordPtr  progress)                        FIVEWORDINLINE(0x2F3C, 0x0010, 0x0002, 0x7000, 0xA82A);
  1102.  
  1103. EXTERN_API( ComponentResult )
  1104. PreviewMakePreviewReference        (pnotComponent             p,
  1105.                                  OSType *                previewType,
  1106.                                  short *                resID,
  1107.                                  const FSSpec *            sourceFile)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x0003, 0x7000, 0xA82A);
  1108.  
  1109. EXTERN_API( ComponentResult )
  1110. PreviewEvent                    (pnotComponent             p,
  1111.                                  EventRecord *            e,
  1112.                                  Boolean *                handledEvent)                        FIVEWORDINLINE(0x2F3C, 0x0008, 0x0004, 0x7000, 0xA82A);
  1113.  
  1114.  
  1115.  
  1116. typedef ComponentInstance                 DataCompressorComponent;
  1117. typedef ComponentInstance                 DataDecompressorComponent;
  1118. typedef ComponentInstance                 DataCodecComponent;
  1119.  
  1120. enum {
  1121.     DataCompressorComponentType    = FOUR_CHAR_CODE('dcom'),
  1122.     DataDecompressorComponentType = FOUR_CHAR_CODE('ddec'),
  1123.     AppleDataCompressorSubType    = FOUR_CHAR_CODE('adec'),
  1124.     zlibDataCompressorSubType    = FOUR_CHAR_CODE('zlib')
  1125. };
  1126.  
  1127.  
  1128. /** These are DataCodec procedures **/
  1129. EXTERN_API( ComponentResult )
  1130. DataCodecDecompress                (DataCodecComponent     dc,
  1131.                                  void *                    srcData,
  1132.                                  UInt32                 srcSize,
  1133.                                  void *                    dstData,
  1134.                                  UInt32                 dstBufferSize)                        FIVEWORDINLINE(0x2F3C, 0x0010, 0x0001, 0x7000, 0xA82A);
  1135.  
  1136. EXTERN_API( ComponentResult )
  1137. DataCodecGetCompressBufferSize    (DataCodecComponent     dc,
  1138.                                  UInt32                 srcSize,
  1139.                                  UInt32 *                dstSize)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0002, 0x7000, 0xA82A);
  1140.  
  1141. EXTERN_API( ComponentResult )
  1142. DataCodecCompress                (DataCodecComponent     dc,
  1143.                                  void *                    srcData,
  1144.                                  UInt32                 srcSize,
  1145.                                  void *                    dstData,
  1146.                                  UInt32                 dstBufferSize,
  1147.                                  UInt32 *                actualDstSize,
  1148.                                  UInt32 *                decompressSlop)                        FIVEWORDINLINE(0x2F3C, 0x0018, 0x0003, 0x7000, 0xA82A);
  1149.  
  1150. EXTERN_API( ComponentResult )
  1151. DataCodecBeginInterruptSafe        (DataCodecComponent     dc,
  1152.                                  unsigned long             maxSrcSize)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0004, 0x7000, 0xA82A);
  1153.  
  1154. EXTERN_API( ComponentResult )
  1155. DataCodecEndInterruptSafe        (DataCodecComponent     dc)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0005, 0x7000, 0xA82A);
  1156.  
  1157. EXTERN_API( ComponentResult )
  1158. DataCodecDecompressPartial        (DataCodecComponent     dc,
  1159.                                  void **                next_in,
  1160.                                  unsigned long *        avail_in,
  1161.                                  unsigned long *        total_in,
  1162.                                  void **                next_out,
  1163.                                  unsigned long *        avail_out,
  1164.                                  unsigned long *        total_out,
  1165.                                  Boolean *                didFinish)                            FIVEWORDINLINE(0x2F3C, 0x001C, 0x0006, 0x7000, 0xA82A);
  1166.  
  1167. EXTERN_API( ComponentResult )
  1168. DataCodecCompressPartial        (DataCodecComponent     dc,
  1169.                                  void **                next_in,
  1170.                                  unsigned long *        avail_in,
  1171.                                  unsigned long *        total_in,
  1172.                                  void **                next_out,
  1173.                                  unsigned long *        avail_out,
  1174.                                  unsigned long *        total_out,
  1175.                                  Boolean                 tryToFinish,
  1176.                                  Boolean *                didFinish)                            FIVEWORDINLINE(0x2F3C, 0x001E, 0x0007, 0x7000, 0xA82A);
  1177.  
  1178.  
  1179.  
  1180.  
  1181. typedef CALLBACK_API( void , DataHCompletionProcPtr )(Ptr request, long refcon, OSErr err);
  1182. typedef STACK_UPP_TYPE(DataHCompletionProcPtr)                     DataHCompletionUPP;
  1183.  
  1184.  
  1185. enum {
  1186.     kDataHCanRead                = 1L << 0,
  1187.     kDataHSpecialRead            = 1L << 1,
  1188.     kDataHSpecialReadFile        = 1L << 2,
  1189.     kDataHCanWrite                = 1L << 3,
  1190.     kDataHSpecialWrite            = 1 << 4,
  1191.     kDataHSpecialWriteFile        = 1 << 5,
  1192.     kDataHCanStreamingWrite        = 1 << 6,
  1193.     kDataHMustCheckDataRef        = 1 << 7
  1194. };
  1195.  
  1196.  
  1197. struct DataHVolumeListRecord {
  1198.     short                             vRefNum;
  1199.     long                             flags;
  1200. };
  1201. typedef struct DataHVolumeListRecord    DataHVolumeListRecord;
  1202.  
  1203. typedef DataHVolumeListRecord *            DataHVolumeListPtr;
  1204. typedef DataHVolumeListPtr *            DataHVolumeList;
  1205.  
  1206. enum {
  1207.     kDataHExtendedSchedule        = FOUR_CHAR_CODE('xtnd')
  1208. };
  1209.  
  1210.  
  1211. struct DataHScheduleRecord {
  1212.     TimeRecord                         timeNeededBy;
  1213.     long                             extendedID;                    /* always is kDataHExtendedSchedule*/
  1214.     long                             extendedVers;                /* always set to 0*/
  1215.     Fixed                             priority;                    /* 100.0 or more means must have. lower numbers…*/
  1216. };
  1217. typedef struct DataHScheduleRecord        DataHScheduleRecord;
  1218.  
  1219. typedef DataHScheduleRecord *            DataHSchedulePtr;
  1220.  
  1221.  
  1222. EXTERN_API( ComponentResult )
  1223. DataHGetData                    (DataHandler             dh,
  1224.                                  Handle                 h,
  1225.                                  long                     hOffset,
  1226.                                  long                     offset,
  1227.                                  long                     size)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x0002, 0x7000, 0xA82A);
  1228.  
  1229. EXTERN_API( ComponentResult )
  1230. DataHPutData                    (DataHandler             dh,
  1231.                                  Handle                 h,
  1232.                                  long                     hOffset,
  1233.                                  long *                    offset,
  1234.                                  long                     size)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x0003, 0x7000, 0xA82A);
  1235.  
  1236. EXTERN_API( ComponentResult )
  1237. DataHFlushData                    (DataHandler             dh)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0004, 0x7000, 0xA82A);
  1238.  
  1239. EXTERN_API( ComponentResult )
  1240. DataHOpenForWrite                (DataHandler             dh)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0005, 0x7000, 0xA82A);
  1241.  
  1242. EXTERN_API( ComponentResult )
  1243. DataHCloseForWrite                (DataHandler             dh)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0006, 0x7000, 0xA82A);
  1244.  
  1245.  
  1246. EXTERN_API( ComponentResult )
  1247. DataHOpenForRead                (DataHandler             dh)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0008, 0x7000, 0xA82A);
  1248.  
  1249. EXTERN_API( ComponentResult )
  1250. DataHCloseForRead                (DataHandler             dh)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0009, 0x7000, 0xA82A);
  1251.  
  1252. EXTERN_API( ComponentResult )
  1253. DataHSetDataRef                    (DataHandler             dh,
  1254.                                  Handle                 dataRef)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000A, 0x7000, 0xA82A);
  1255.  
  1256. EXTERN_API( ComponentResult )
  1257. DataHGetDataRef                    (DataHandler             dh,
  1258.                                  Handle *                dataRef)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000B, 0x7000, 0xA82A);
  1259.  
  1260. EXTERN_API( ComponentResult )
  1261. DataHCompareDataRef                (DataHandler             dh,
  1262.                                  Handle                 dataRef,
  1263.                                  Boolean *                equal)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x000C, 0x7000, 0xA82A);
  1264.  
  1265. EXTERN_API( ComponentResult )
  1266. DataHTask                        (DataHandler             dh)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x000D, 0x7000, 0xA82A);
  1267.  
  1268. EXTERN_API( ComponentResult )
  1269. DataHScheduleData                (DataHandler             dh,
  1270.                                  Ptr                     PlaceToPutDataPtr,
  1271.                                  long                     FileOffset,
  1272.                                  long                     DataSize,
  1273.                                  long                     RefCon,
  1274.                                  DataHSchedulePtr         scheduleRec,
  1275.                                  DataHCompletionUPP     CompletionRtn)                        FIVEWORDINLINE(0x2F3C, 0x0018, 0x000E, 0x7000, 0xA82A);
  1276.  
  1277. EXTERN_API( ComponentResult )
  1278. DataHFinishData                    (DataHandler             dh,
  1279.                                  Ptr                     PlaceToPutDataPtr,
  1280.                                  Boolean                 Cancel)                                FIVEWORDINLINE(0x2F3C, 0x0006, 0x000F, 0x7000, 0xA82A);
  1281.  
  1282. EXTERN_API( ComponentResult )
  1283. DataHFlushCache                    (DataHandler             dh)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0010, 0x7000, 0xA82A);
  1284.  
  1285. EXTERN_API( ComponentResult )
  1286. DataHResolveDataRef                (DataHandler             dh,
  1287.                                  Handle                 theDataRef,
  1288.                                  Boolean *                wasChanged,
  1289.                                  Boolean                 userInterfaceAllowed)                FIVEWORDINLINE(0x2F3C, 0x000A, 0x0011, 0x7000, 0xA82A);
  1290.  
  1291. EXTERN_API( ComponentResult )
  1292. DataHGetFileSize                (DataHandler             dh,
  1293.                                  long *                    fileSize)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0012, 0x7000, 0xA82A);
  1294.  
  1295. EXTERN_API( ComponentResult )
  1296. DataHCanUseDataRef                (DataHandler             dh,
  1297.                                  Handle                 dataRef,
  1298.                                  long *                    useFlags)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0013, 0x7000, 0xA82A);
  1299.  
  1300. EXTERN_API( ComponentResult )
  1301. DataHGetVolumeList                (DataHandler             dh,
  1302.                                  DataHVolumeList *        volumeList)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0014, 0x7000, 0xA82A);
  1303.  
  1304. EXTERN_API( ComponentResult )
  1305. DataHWrite                        (DataHandler             dh,
  1306.                                  Ptr                     data,
  1307.                                  long                     offset,
  1308.                                  long                     size,
  1309.                                  DataHCompletionUPP     completion,
  1310.                                  long                     refCon)                                FIVEWORDINLINE(0x2F3C, 0x0014, 0x0015, 0x7000, 0xA82A);
  1311.  
  1312. EXTERN_API( ComponentResult )
  1313. DataHPreextend                    (DataHandler             dh,
  1314.                                  unsigned long             maxToAdd,
  1315.                                  unsigned long *        spaceAdded)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0016, 0x7000, 0xA82A);
  1316.  
  1317. EXTERN_API( ComponentResult )
  1318. DataHSetFileSize                (DataHandler             dh,
  1319.                                  long                     fileSize)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0017, 0x7000, 0xA82A);
  1320.  
  1321. EXTERN_API( ComponentResult )
  1322. DataHGetFreeSpace                (DataHandler             dh,
  1323.                                  unsigned long *        freeSize)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0018, 0x7000, 0xA82A);
  1324.  
  1325. EXTERN_API( ComponentResult )
  1326. DataHCreateFile                    (DataHandler             dh,
  1327.                                  OSType                 creator,
  1328.                                  Boolean                 deleteExisting)                        FIVEWORDINLINE(0x2F3C, 0x0006, 0x0019, 0x7000, 0xA82A);
  1329.  
  1330. EXTERN_API( ComponentResult )
  1331. DataHGetPreferredBlockSize        (DataHandler             dh,
  1332.                                  long *                    blockSize)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x001A, 0x7000, 0xA82A);
  1333.  
  1334. EXTERN_API( ComponentResult )
  1335. DataHGetDeviceIndex                (DataHandler             dh,
  1336.                                  long *                    deviceIndex)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x001B, 0x7000, 0xA82A);
  1337.  
  1338. EXTERN_API( ComponentResult )
  1339. DataHIsStreamingDataHandler        (DataHandler             dh,
  1340.                                  Boolean *                yes)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001C, 0x7000, 0xA82A);
  1341.  
  1342. EXTERN_API( ComponentResult )
  1343. DataHGetDataInBuffer            (DataHandler             dh,
  1344.                                  long                     startOffset,
  1345.                                  long *                    size)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x001D, 0x7000, 0xA82A);
  1346.  
  1347. EXTERN_API( ComponentResult )
  1348. DataHGetScheduleAheadTime        (DataHandler             dh,
  1349.                                  long *                    millisecs)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x001E, 0x7000, 0xA82A);
  1350.  
  1351. EXTERN_API( ComponentResult )
  1352. DataHSetCacheSizeLimit            (DataHandler             dh,
  1353.                                  Size                     cacheSizeLimit)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x001F, 0x7000, 0xA82A);
  1354.  
  1355. EXTERN_API( ComponentResult )
  1356. DataHGetCacheSizeLimit            (DataHandler             dh,
  1357.                                  Size *                    cacheSizeLimit)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0020, 0x7000, 0xA82A);
  1358.  
  1359. EXTERN_API( ComponentResult )
  1360. DataHGetMovie                    (DataHandler             dh,
  1361.                                  Movie *                theMovie,
  1362.                                  short *                id)                                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0021, 0x7000, 0xA82A);
  1363.  
  1364. EXTERN_API( ComponentResult )
  1365. DataHAddMovie                    (DataHandler             dh,
  1366.                                  Movie                     theMovie,
  1367.                                  short *                id)                                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0022, 0x7000, 0xA82A);
  1368.  
  1369. EXTERN_API( ComponentResult )
  1370. DataHUpdateMovie                (DataHandler             dh,
  1371.                                  Movie                     theMovie,
  1372.                                  short                     id)                                    FIVEWORDINLINE(0x2F3C, 0x0006, 0x0023, 0x7000, 0xA82A);
  1373.  
  1374. EXTERN_API( ComponentResult )
  1375. DataHDoesBuffer                    (DataHandler             dh,
  1376.                                  Boolean *                buffersReads,
  1377.                                  Boolean *                buffersWrites)                        FIVEWORDINLINE(0x2F3C, 0x0008, 0x0024, 0x7000, 0xA82A);
  1378.  
  1379. EXTERN_API( ComponentResult )
  1380. DataHGetFileName                (DataHandler             dh,
  1381.                                  Str255                 str)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0025, 0x7000, 0xA82A);
  1382.  
  1383. EXTERN_API( ComponentResult )
  1384. DataHGetAvailableFileSize        (DataHandler             dh,
  1385.                                  long *                    fileSize)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0026, 0x7000, 0xA82A);
  1386.  
  1387. EXTERN_API( ComponentResult )
  1388. DataHGetMacOSFileType            (DataHandler             dh,
  1389.                                  OSType *                fileType)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0027, 0x7000, 0xA82A);
  1390.  
  1391. EXTERN_API( ComponentResult )
  1392. DataHGetMIMEType                (DataHandler             dh,
  1393.                                  Str255                 mimeType)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0028, 0x7000, 0xA82A);
  1394.  
  1395. EXTERN_API( ComponentResult )
  1396. DataHSetDataRefWithAnchor        (DataHandler             dh,
  1397.                                  Handle                 anchorDataRef,
  1398.                                  OSType                 dataRefType,
  1399.                                  Handle                 dataRef)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x0029, 0x7000, 0xA82A);
  1400.  
  1401. EXTERN_API( ComponentResult )
  1402. DataHGetDataRefWithAnchor        (DataHandler             dh,
  1403.                                  Handle                 anchorDataRef,
  1404.                                  OSType                 dataRefType,
  1405.                                  Handle *                dataRef)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x002A, 0x7000, 0xA82A);
  1406.  
  1407. EXTERN_API( ComponentResult )
  1408. DataHSetMacOSFileType            (DataHandler             dh,
  1409.                                  OSType                 fileType)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x002B, 0x7000, 0xA82A);
  1410.  
  1411. EXTERN_API( ComponentResult )
  1412. DataHSetTimeBase                (DataHandler             dh,
  1413.                                  TimeBase                 tb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x002C, 0x7000, 0xA82A);
  1414.  
  1415.  
  1416. EXTERN_API( ComponentResult )
  1417. DataHPlaybackHints                (DataHandler             dh,
  1418.                                  long                     flags,
  1419.                                  unsigned long             minFileOffset,
  1420.                                  unsigned long             maxFileOffset,
  1421.                                  long                     bytesPerSecond)                        FIVEWORDINLINE(0x2F3C, 0x0010, 0x0103, 0x7000, 0xA82A);
  1422.  
  1423.  
  1424.  
  1425.  
  1426. /* Standard type for video digitizers */
  1427.  
  1428. enum {
  1429.     videoDigitizerComponentType    = FOUR_CHAR_CODE('vdig'),
  1430.     vdigInterfaceRev            = 2
  1431. };
  1432.  
  1433. /* Input Format Standards */
  1434.  
  1435. enum {
  1436.     ntscIn                        = 0,                            /* current input format */
  1437.     currentIn                    = 0,                            /* ntsc input format */
  1438.     palIn                        = 1,                            /* pal input format */
  1439.     secamIn                        = 2,                            /* secam input format */
  1440.     ntscReallyIn                = 3                                /* ntsc input format */
  1441. };
  1442.  
  1443. /* Input Formats */
  1444.  
  1445. enum {
  1446.     compositeIn                    = 0,                            /* input is composite format */
  1447.     sVideoIn                    = 1,                            /* input is sVideo format */
  1448.     rgbComponentIn                = 2,                            /* input is rgb component format */
  1449.     rgbComponentSyncIn            = 3,                            /* input is rgb component format (sync on green?)*/
  1450.     yuvComponentIn                = 4,                            /* input is yuv component format */
  1451.     yuvComponentSyncIn            = 5,                            /* input is yuv component format (sync on green?) */
  1452.     tvTunerIn                    = 6,
  1453.     sdiIn                        = 7
  1454. };
  1455.  
  1456.  
  1457. /* Video Digitizer PlayThru States */
  1458.  
  1459. enum {
  1460.     vdPlayThruOff                = 0,
  1461.     vdPlayThruOn                = 1
  1462. };
  1463.  
  1464. /* Input Color Space Modes */
  1465.  
  1466. enum {
  1467.     vdDigitizerBW                = 0,                            /* black and white */
  1468.     vdDigitizerRGB                = 1                                /* rgb color */
  1469. };
  1470.  
  1471. /* Phase Lock Loop Modes */
  1472.  
  1473. enum {
  1474.     vdBroadcastMode                = 0,                            /* Broadcast / Laser Disk video mode */
  1475.     vdVTRMode                    = 1                                /* VCR / Magnetic media mode */
  1476. };
  1477.  
  1478. /* Field Select Options */
  1479.  
  1480. enum {
  1481.     vdUseAnyField                = 0,                            /* Digitizers choice on field use */
  1482.     vdUseOddField                = 1,                            /* Use odd field for half size vert and smaller */
  1483.     vdUseEvenField                = 2                                /* Use even field for half size vert and smaller */
  1484. };
  1485.  
  1486. /* vdig types */
  1487.  
  1488. enum {
  1489.     vdTypeBasic                    = 0,                            /* basic, no clipping */
  1490.     vdTypeAlpha                    = 1,                            /* supports clipping with alpha channel */
  1491.     vdTypeMask                    = 2,                            /* supports clipping with mask plane */
  1492.     vdTypeKey                    = 3                                /* supports clipping with key color(s) */
  1493. };
  1494.  
  1495.  
  1496.  
  1497. /* Digitizer Input Capability/Current Flags    */
  1498.  
  1499. enum {
  1500.     digiInDoesNTSC                = 1L << 0,                        /* digitizer supports NTSC input format */
  1501.     digiInDoesPAL                = 1L << 1,                        /* digitizer supports PAL input format */
  1502.     digiInDoesSECAM                = 1L << 2,                        /* digitizer supports SECAM input format */
  1503.     digiInDoesGenLock            = 1L << 7,                        /* digitizer does genlock */
  1504.     digiInDoesComposite            = 1L << 8,                        /* digitizer supports composite input type */
  1505.     digiInDoesSVideo            = 1L << 9,                        /* digitizer supports S-Video input type */
  1506.     digiInDoesComponent            = 1L << 10,                        /* digitizer supports component = rgb, input type */
  1507.     digiInVTR_Broadcast            = 1L << 11,                        /* digitizer can differentiate between the two */
  1508.     digiInDoesColor                = 1L << 12,                        /* digitizer supports color */
  1509.     digiInDoesBW                = 1L << 13,                        /* digitizer supports black & white */
  1510.                                                                 /* Digitizer Input Current Flags = these are valid only during active operating conditions,    */
  1511.     digiInSignalLock            = 1L << 31                        /* digitizer detects input signal is locked, this bit = horiz lock || vertical lock */
  1512. };
  1513.  
  1514.  
  1515. /* Digitizer Output Capability/Current Flags */
  1516.  
  1517. enum {
  1518.     digiOutDoes1                = 1L << 0,                        /* digitizer supports 1 bit pixels */
  1519.     digiOutDoes2                = 1L << 1,                        /* digitizer supports 2 bit pixels */
  1520.     digiOutDoes4                = 1L << 2,                        /* digitizer supports 4 bit pixels */
  1521.     digiOutDoes8                = 1L << 3,                        /* digitizer supports 8 bit pixels */
  1522.     digiOutDoes16                = 1L << 4,                        /* digitizer supports 16 bit pixels */
  1523.     digiOutDoes32                = 1L << 5,                        /* digitizer supports 32 bit pixels */
  1524.     digiOutDoesDither            = 1L << 6,                        /* digitizer dithers in indexed modes */
  1525.     digiOutDoesStretch            = 1L << 7,                        /* digitizer can arbitrarily stretch */
  1526.     digiOutDoesShrink            = 1L << 8,                        /* digitizer can arbitrarily shrink */
  1527.     digiOutDoesMask                = 1L << 9,                        /* digitizer can mask to clipping regions */
  1528.     digiOutDoesDouble            = 1L << 11,                        /* digitizer can stretch to exactly double size */
  1529.     digiOutDoesQuad                = 1L << 12,                        /* digitizer can stretch exactly quadruple size */
  1530.     digiOutDoesQuarter            = 1L << 13,                        /* digitizer can shrink to exactly quarter size */
  1531.     digiOutDoesSixteenth        = 1L << 14,                        /* digitizer can shrink to exactly sixteenth size */
  1532.     digiOutDoesRotate            = 1L << 15,                        /* digitizer supports rotate transformations */
  1533.     digiOutDoesHorizFlip        = 1L << 16,                        /* digitizer supports horizontal flips Sx < 0 */
  1534.     digiOutDoesVertFlip            = 1L << 17,                        /* digitizer supports vertical flips Sy < 0 */
  1535.     digiOutDoesSkew                = 1L << 18,                        /* digitizer supports skew = shear,twist, */
  1536.     digiOutDoesBlend            = 1L << 19,
  1537.     digiOutDoesWarp                = 1L << 20,
  1538.     digiOutDoesHW_DMA            = 1L << 21,                        /* digitizer not constrained to local device */
  1539.     digiOutDoesHWPlayThru        = 1L << 22,                        /* digitizer doesn't need time to play thru */
  1540.     digiOutDoesILUT                = 1L << 23,                        /* digitizer does inverse LUT for index modes */
  1541.     digiOutDoesKeyColor            = 1L << 24,                        /* digitizer does key color functions too */
  1542.     digiOutDoesAsyncGrabs        = 1L << 25,                        /* digitizer supports async grabs */
  1543.     digiOutDoesUnreadableScreenBits = 1L << 26,                    /* playthru doesn't generate readable bits on screen*/
  1544.     digiOutDoesCompress            = 1L << 27,                        /* supports alternate output data types */
  1545.     digiOutDoesCompressOnly        = 1L << 28,                        /* can't provide raw frames anywhere */
  1546.     digiOutDoesPlayThruDuringCompress = 1L << 29,                /* digi can do playthru while providing compressed data */
  1547.     digiOutDoesCompressPartiallyVisible = 1L << 30                /* digi doesn't need all bits visible on screen to do hardware compress */
  1548. };
  1549.  
  1550. /* Types */
  1551. typedef ComponentInstance                 VideoDigitizerComponent;
  1552. typedef ComponentResult                 VideoDigitizerError;
  1553.  
  1554. struct DigitizerInfo {
  1555.     short                             vdigType;
  1556.     long                             inputCapabilityFlags;
  1557.     long                             outputCapabilityFlags;
  1558.     long                             inputCurrentFlags;
  1559.     long                             outputCurrentFlags;
  1560.     short                             slot;                        /* temporary for connection purposes */
  1561.     GDHandle                         gdh;                        /* temporary for digitizers that have preferred screen */
  1562.     GDHandle                         maskgdh;                    /* temporary for digitizers that have mask planes */
  1563.     short                             minDestHeight;                /* Smallest resizable height */
  1564.     short                             minDestWidth;                /* Smallest resizable width */
  1565.     short                             maxDestHeight;                /* Largest resizable height */
  1566.     short                             maxDestWidth;                /* Largest resizable height */
  1567.     short                             blendLevels;                /* Number of blend levels supported (2 if 1 bit mask) */
  1568.     long                             reserved;                    /* reserved */
  1569. };
  1570. typedef struct DigitizerInfo            DigitizerInfo;
  1571.  
  1572. struct VdigType {
  1573.     long                             digType;
  1574.     long                             reserved;
  1575. };
  1576. typedef struct VdigType                    VdigType;
  1577.  
  1578. struct VdigTypeList {
  1579.     short                             count;
  1580.     VdigType                         list[1];
  1581. };
  1582. typedef struct VdigTypeList                VdigTypeList;
  1583.  
  1584. struct VdigBufferRec {
  1585.     PixMapHandle                     dest;
  1586.     Point                             location;
  1587.     long                             reserved;
  1588. };
  1589. typedef struct VdigBufferRec            VdigBufferRec;
  1590.  
  1591. struct VdigBufferRecList {
  1592.     short                             count;
  1593.     MatrixRecordPtr                 matrix;
  1594.     RgnHandle                         mask;
  1595.     VdigBufferRec                     list[1];
  1596. };
  1597. typedef struct VdigBufferRecList        VdigBufferRecList;
  1598. typedef VdigBufferRecList *                VdigBufferRecListPtr;
  1599. typedef VdigBufferRecListPtr *            VdigBufferRecListHandle;
  1600. typedef CALLBACK_API( void , VdigIntProcPtr )(long flags, long refcon);
  1601. typedef STACK_UPP_TYPE(VdigIntProcPtr)                             VdigIntUPP;
  1602.  
  1603. struct VDCompressionList {
  1604.     CodecComponent                     codec;
  1605.     CodecType                         cType;
  1606.     Str63                             typeName;
  1607.     Str63                             name;
  1608.     long                             formatFlags;
  1609.     long                             compressFlags;
  1610.     long                             reserved;
  1611. };
  1612. typedef struct VDCompressionList        VDCompressionList;
  1613. typedef VDCompressionList *                VDCompressionListPtr;
  1614. typedef VDCompressionListPtr *            VDCompressionListHandle;
  1615.  
  1616. enum {
  1617.     dmaDepth1                    = 1,
  1618.     dmaDepth2                    = 2,
  1619.     dmaDepth4                    = 4,
  1620.     dmaDepth8                    = 8,
  1621.     dmaDepth16                    = 16,
  1622.     dmaDepth32                    = 32,
  1623.     dmaDepth2Gray                = 64,
  1624.     dmaDepth4Gray                = 128,
  1625.     dmaDepth8Gray                = 256
  1626. };
  1627.  
  1628.  
  1629. enum {
  1630.     kVDIGControlledFrameRate    = -1
  1631. };
  1632.  
  1633.  
  1634. EXTERN_API( VideoDigitizerError )
  1635. VDGetMaxSrcRect                    (VideoDigitizerComponent  ci,
  1636.                                  short                     inputStd,
  1637.                                  Rect *                    maxSrcRect)                            FIVEWORDINLINE(0x2F3C, 0x0006, 0x0001, 0x7000, 0xA82A);
  1638.  
  1639. EXTERN_API( VideoDigitizerError )
  1640. VDGetActiveSrcRect                (VideoDigitizerComponent  ci,
  1641.                                  short                     inputStd,
  1642.                                  Rect *                    activeSrcRect)                        FIVEWORDINLINE(0x2F3C, 0x0006, 0x0002, 0x7000, 0xA82A);
  1643.  
  1644. EXTERN_API( VideoDigitizerError )
  1645. VDSetDigitizerRect                (VideoDigitizerComponent  ci,
  1646.                                  Rect *                    digitizerRect)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0003, 0x7000, 0xA82A);
  1647.  
  1648. EXTERN_API( VideoDigitizerError )
  1649. VDGetDigitizerRect                (VideoDigitizerComponent  ci,
  1650.                                  Rect *                    digitizerRect)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0004, 0x7000, 0xA82A);
  1651.  
  1652. EXTERN_API( VideoDigitizerError )
  1653. VDGetVBlankRect                    (VideoDigitizerComponent  ci,
  1654.                                  short                     inputStd,
  1655.                                  Rect *                    vBlankRect)                            FIVEWORDINLINE(0x2F3C, 0x0006, 0x0005, 0x7000, 0xA82A);
  1656.  
  1657. EXTERN_API( VideoDigitizerError )
  1658. VDGetMaskPixMap                    (VideoDigitizerComponent  ci,
  1659.                                  PixMapHandle             maskPixMap)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0006, 0x7000, 0xA82A);
  1660.  
  1661. EXTERN_API( VideoDigitizerError )
  1662. VDGetPlayThruDestination        (VideoDigitizerComponent  ci,
  1663.                                  PixMapHandle *            dest,
  1664.                                  Rect *                    destRect,
  1665.                                  MatrixRecord *            m,
  1666.                                  RgnHandle *            mask)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x0008, 0x7000, 0xA82A);
  1667.  
  1668. EXTERN_API( VideoDigitizerError )
  1669. VDUseThisCLUT                    (VideoDigitizerComponent  ci,
  1670.                                  CTabHandle             colorTableHandle)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0009, 0x7000, 0xA82A);
  1671.  
  1672. EXTERN_API( VideoDigitizerError )
  1673. VDSetInputGammaValue            (VideoDigitizerComponent  ci,
  1674.                                  Fixed                     channel1,
  1675.                                  Fixed                     channel2,
  1676.                                  Fixed                     channel3)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x000A, 0x7000, 0xA82A);
  1677.  
  1678. EXTERN_API( VideoDigitizerError )
  1679. VDGetInputGammaValue            (VideoDigitizerComponent  ci,
  1680.                                  Fixed *                channel1,
  1681.                                  Fixed *                channel2,
  1682.                                  Fixed *                channel3)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x000B, 0x7000, 0xA82A);
  1683.  
  1684. EXTERN_API( VideoDigitizerError )
  1685. VDSetBrightness                    (VideoDigitizerComponent  ci,
  1686.                                  unsigned short *        brightness)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000C, 0x7000, 0xA82A);
  1687.  
  1688. EXTERN_API( VideoDigitizerError )
  1689. VDGetBrightness                    (VideoDigitizerComponent  ci,
  1690.                                  unsigned short *        brightness)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000D, 0x7000, 0xA82A);
  1691.  
  1692. EXTERN_API( VideoDigitizerError )
  1693. VDSetContrast                    (VideoDigitizerComponent  ci,
  1694.                                  unsigned short *        contrast)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000E, 0x7000, 0xA82A);
  1695.  
  1696. EXTERN_API( VideoDigitizerError )
  1697. VDSetHue                        (VideoDigitizerComponent  ci,
  1698.                                  unsigned short *        hue)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x000F, 0x7000, 0xA82A);
  1699.  
  1700. EXTERN_API( VideoDigitizerError )
  1701. VDSetSharpness                    (VideoDigitizerComponent  ci,
  1702.                                  unsigned short *        sharpness)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0010, 0x7000, 0xA82A);
  1703.  
  1704. EXTERN_API( VideoDigitizerError )
  1705. VDSetSaturation                    (VideoDigitizerComponent  ci,
  1706.                                  unsigned short *        saturation)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0011, 0x7000, 0xA82A);
  1707.  
  1708. EXTERN_API( VideoDigitizerError )
  1709. VDGetContrast                    (VideoDigitizerComponent  ci,
  1710.                                  unsigned short *        contrast)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0012, 0x7000, 0xA82A);
  1711.  
  1712. EXTERN_API( VideoDigitizerError )
  1713. VDGetHue                        (VideoDigitizerComponent  ci,
  1714.                                  unsigned short *        hue)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0013, 0x7000, 0xA82A);
  1715.  
  1716. EXTERN_API( VideoDigitizerError )
  1717. VDGetSharpness                    (VideoDigitizerComponent  ci,
  1718.                                  unsigned short *        sharpness)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0014, 0x7000, 0xA82A);
  1719.  
  1720. EXTERN_API( VideoDigitizerError )
  1721. VDGetSaturation                    (VideoDigitizerComponent  ci,
  1722.                                  unsigned short *        saturation)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0015, 0x7000, 0xA82A);
  1723.  
  1724. EXTERN_API( VideoDigitizerError )
  1725. VDGrabOneFrame                    (VideoDigitizerComponent  ci)                                FIVEWORDINLINE(0x2F3C, 0x0000, 0x0016, 0x7000, 0xA82A);
  1726.  
  1727. EXTERN_API( VideoDigitizerError )
  1728. VDGetMaxAuxBuffer                (VideoDigitizerComponent  ci,
  1729.                                  PixMapHandle *            pm,
  1730.                                  Rect *                    r)                                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0017, 0x7000, 0xA82A);
  1731.  
  1732. EXTERN_API( VideoDigitizerError )
  1733. VDGetDigitizerInfo                (VideoDigitizerComponent  ci,
  1734.                                  DigitizerInfo *        info)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0019, 0x7000, 0xA82A);
  1735.  
  1736. EXTERN_API( VideoDigitizerError )
  1737. VDGetCurrentFlags                (VideoDigitizerComponent  ci,
  1738.                                  long *                    inputCurrentFlag,
  1739.                                  long *                    outputCurrentFlag)                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x001A, 0x7000, 0xA82A);
  1740.  
  1741. EXTERN_API( VideoDigitizerError )
  1742. VDSetKeyColor                    (VideoDigitizerComponent  ci,
  1743.                                  long                     index)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001B, 0x7000, 0xA82A);
  1744.  
  1745. EXTERN_API( VideoDigitizerError )
  1746. VDGetKeyColor                    (VideoDigitizerComponent  ci,
  1747.                                  long *                    index)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001C, 0x7000, 0xA82A);
  1748.  
  1749. EXTERN_API( VideoDigitizerError )
  1750. VDAddKeyColor                    (VideoDigitizerComponent  ci,
  1751.                                  long *                    index)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001D, 0x7000, 0xA82A);
  1752.  
  1753. EXTERN_API( VideoDigitizerError )
  1754. VDGetNextKeyColor                (VideoDigitizerComponent  ci,
  1755.                                  long                     index)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001E, 0x7000, 0xA82A);
  1756.  
  1757. EXTERN_API( VideoDigitizerError )
  1758. VDSetKeyColorRange                (VideoDigitizerComponent  ci,
  1759.                                  RGBColor *                minRGB,
  1760.                                  RGBColor *                maxRGB)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x001F, 0x7000, 0xA82A);
  1761.  
  1762. EXTERN_API( VideoDigitizerError )
  1763. VDGetKeyColorRange                (VideoDigitizerComponent  ci,
  1764.                                  RGBColor *                minRGB,
  1765.                                  RGBColor *                maxRGB)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0020, 0x7000, 0xA82A);
  1766.  
  1767. EXTERN_API( VideoDigitizerError )
  1768. VDSetDigitizerUserInterrupt        (VideoDigitizerComponent  ci,
  1769.                                  long                     flags,
  1770.                                  VdigIntUPP             userInterruptProc,
  1771.                                  long                     refcon)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0021, 0x7000, 0xA82A);
  1772.  
  1773. EXTERN_API( VideoDigitizerError )
  1774. VDSetInputColorSpaceMode        (VideoDigitizerComponent  ci,
  1775.                                  short                     colorSpaceMode)                        FIVEWORDINLINE(0x2F3C, 0x0002, 0x0022, 0x7000, 0xA82A);
  1776.  
  1777. EXTERN_API( VideoDigitizerError )
  1778. VDGetInputColorSpaceMode        (VideoDigitizerComponent  ci,
  1779.                                  short *                colorSpaceMode)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0023, 0x7000, 0xA82A);
  1780.  
  1781. EXTERN_API( VideoDigitizerError )
  1782. VDSetClipState                    (VideoDigitizerComponent  ci,
  1783.                                  short                     clipEnable)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x0024, 0x7000, 0xA82A);
  1784.  
  1785. EXTERN_API( VideoDigitizerError )
  1786. VDGetClipState                    (VideoDigitizerComponent  ci,
  1787.                                  short *                clipEnable)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0025, 0x7000, 0xA82A);
  1788.  
  1789. EXTERN_API( VideoDigitizerError )
  1790. VDSetClipRgn                    (VideoDigitizerComponent  ci,
  1791.                                  RgnHandle                 clipRegion)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0026, 0x7000, 0xA82A);
  1792.  
  1793. EXTERN_API( VideoDigitizerError )
  1794. VDClearClipRgn                    (VideoDigitizerComponent  ci,
  1795.                                  RgnHandle                 clipRegion)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0027, 0x7000, 0xA82A);
  1796.  
  1797. EXTERN_API( VideoDigitizerError )
  1798. VDGetCLUTInUse                    (VideoDigitizerComponent  ci,
  1799.                                  CTabHandle *            colorTableHandle)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0028, 0x7000, 0xA82A);
  1800.  
  1801. EXTERN_API( VideoDigitizerError )
  1802. VDSetPLLFilterType                (VideoDigitizerComponent  ci,
  1803.                                  short                     pllType)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x0029, 0x7000, 0xA82A);
  1804.  
  1805. EXTERN_API( VideoDigitizerError )
  1806. VDGetPLLFilterType                (VideoDigitizerComponent  ci,
  1807.                                  short *                pllType)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x002A, 0x7000, 0xA82A);
  1808.  
  1809. EXTERN_API( VideoDigitizerError )
  1810. VDGetMaskandValue                (VideoDigitizerComponent  ci,
  1811.                                  unsigned short         blendLevel,
  1812.                                  long *                    mask,
  1813.                                  long *                    value)                                FIVEWORDINLINE(0x2F3C, 0x000A, 0x002B, 0x7000, 0xA82A);
  1814.  
  1815. EXTERN_API( VideoDigitizerError )
  1816. VDSetMasterBlendLevel            (VideoDigitizerComponent  ci,
  1817.                                  unsigned short *        blendLevel)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x002C, 0x7000, 0xA82A);
  1818.  
  1819. EXTERN_API( VideoDigitizerError )
  1820. VDSetPlayThruDestination        (VideoDigitizerComponent  ci,
  1821.                                  PixMapHandle             dest,
  1822.                                  RectPtr                 destRect,
  1823.                                  MatrixRecordPtr         m,
  1824.                                  RgnHandle                 mask)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x002D, 0x7000, 0xA82A);
  1825.  
  1826. EXTERN_API( VideoDigitizerError )
  1827. VDSetPlayThruOnOff                (VideoDigitizerComponent  ci,
  1828.                                  short                     state)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x002E, 0x7000, 0xA82A);
  1829.  
  1830. EXTERN_API( VideoDigitizerError )
  1831. VDSetFieldPreference            (VideoDigitizerComponent  ci,
  1832.                                  short                     fieldFlag)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x002F, 0x7000, 0xA82A);
  1833.  
  1834. EXTERN_API( VideoDigitizerError )
  1835. VDGetFieldPreference            (VideoDigitizerComponent  ci,
  1836.                                  short *                fieldFlag)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0030, 0x7000, 0xA82A);
  1837.  
  1838. EXTERN_API( VideoDigitizerError )
  1839. VDPreflightDestination            (VideoDigitizerComponent  ci,
  1840.                                  Rect *                    digitizerRect,
  1841.                                  PixMap **                dest,
  1842.                                  RectPtr                 destRect,
  1843.                                  MatrixRecordPtr         m)                                    FIVEWORDINLINE(0x2F3C, 0x0010, 0x0032, 0x7000, 0xA82A);
  1844.  
  1845. EXTERN_API( VideoDigitizerError )
  1846. VDPreflightGlobalRect            (VideoDigitizerComponent  ci,
  1847.                                  GrafPtr                 theWindow,
  1848.                                  Rect *                    globalRect)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0033, 0x7000, 0xA82A);
  1849.  
  1850. EXTERN_API( VideoDigitizerError )
  1851. VDSetPlayThruGlobalRect            (VideoDigitizerComponent  ci,
  1852.                                  GrafPtr                 theWindow,
  1853.                                  Rect *                    globalRect)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0034, 0x7000, 0xA82A);
  1854.  
  1855. EXTERN_API( VideoDigitizerError )
  1856. VDSetInputGammaRecord            (VideoDigitizerComponent  ci,
  1857.                                  VDGamRecPtr             inputGammaPtr)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0035, 0x7000, 0xA82A);
  1858.  
  1859. EXTERN_API( VideoDigitizerError )
  1860. VDGetInputGammaRecord            (VideoDigitizerComponent  ci,
  1861.                                  VDGamRecPtr *            inputGammaPtr)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0036, 0x7000, 0xA82A);
  1862.  
  1863. EXTERN_API( VideoDigitizerError )
  1864. VDSetBlackLevelValue            (VideoDigitizerComponent  ci,
  1865.                                  unsigned short *        blackLevel)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0037, 0x7000, 0xA82A);
  1866.  
  1867. EXTERN_API( VideoDigitizerError )
  1868. VDGetBlackLevelValue            (VideoDigitizerComponent  ci,
  1869.                                  unsigned short *        blackLevel)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0038, 0x7000, 0xA82A);
  1870.  
  1871. EXTERN_API( VideoDigitizerError )
  1872. VDSetWhiteLevelValue            (VideoDigitizerComponent  ci,
  1873.                                  unsigned short *        whiteLevel)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0039, 0x7000, 0xA82A);
  1874.  
  1875. EXTERN_API( VideoDigitizerError )
  1876. VDGetWhiteLevelValue            (VideoDigitizerComponent  ci,
  1877.                                  unsigned short *        whiteLevel)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x003A, 0x7000, 0xA82A);
  1878.  
  1879. EXTERN_API( VideoDigitizerError )
  1880. VDGetVideoDefaults                (VideoDigitizerComponent  ci,
  1881.                                  unsigned short *        blackLevel,
  1882.                                  unsigned short *        whiteLevel,
  1883.                                  unsigned short *        brightness,
  1884.                                  unsigned short *        hue,
  1885.                                  unsigned short *        saturation,
  1886.                                  unsigned short *        contrast,
  1887.                                  unsigned short *        sharpness)                            FIVEWORDINLINE(0x2F3C, 0x001C, 0x003B, 0x7000, 0xA82A);
  1888.  
  1889. EXTERN_API( VideoDigitizerError )
  1890. VDGetNumberOfInputs                (VideoDigitizerComponent  ci,
  1891.                                  short *                inputs)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x003C, 0x7000, 0xA82A);
  1892.  
  1893. EXTERN_API( VideoDigitizerError )
  1894. VDGetInputFormat                (VideoDigitizerComponent  ci,
  1895.                                  short                     input,
  1896.                                  short *                format)                                FIVEWORDINLINE(0x2F3C, 0x0006, 0x003D, 0x7000, 0xA82A);
  1897.  
  1898. EXTERN_API( VideoDigitizerError )
  1899. VDSetInput                        (VideoDigitizerComponent  ci,
  1900.                                  short                     input)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x003E, 0x7000, 0xA82A);
  1901.  
  1902. EXTERN_API( VideoDigitizerError )
  1903. VDGetInput                        (VideoDigitizerComponent  ci,
  1904.                                  short *                input)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x003F, 0x7000, 0xA82A);
  1905.  
  1906. EXTERN_API( VideoDigitizerError )
  1907. VDSetInputStandard                (VideoDigitizerComponent  ci,
  1908.                                  short                     inputStandard)                        FIVEWORDINLINE(0x2F3C, 0x0002, 0x0040, 0x7000, 0xA82A);
  1909.  
  1910. EXTERN_API( VideoDigitizerError )
  1911. VDSetupBuffers                    (VideoDigitizerComponent  ci,
  1912.                                  VdigBufferRecListHandle  bufferList)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0041, 0x7000, 0xA82A);
  1913.  
  1914. EXTERN_API( VideoDigitizerError )
  1915. VDGrabOneFrameAsync                (VideoDigitizerComponent  ci,
  1916.                                  short                     buffer)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x0042, 0x7000, 0xA82A);
  1917.  
  1918. EXTERN_API( VideoDigitizerError )
  1919. VDDone                            (VideoDigitizerComponent  ci,
  1920.                                  short                     buffer)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x0043, 0x7000, 0xA82A);
  1921.  
  1922. EXTERN_API( VideoDigitizerError )
  1923. VDSetCompression                (VideoDigitizerComponent  ci,
  1924.                                  OSType                 compressType,
  1925.                                  short                     depth,
  1926.                                  Rect *                    bounds,
  1927.                                  CodecQ                 spatialQuality,
  1928.                                  CodecQ                 temporalQuality,
  1929.                                  long                     keyFrameRate)                        FIVEWORDINLINE(0x2F3C, 0x0016, 0x0044, 0x7000, 0xA82A);
  1930.  
  1931. EXTERN_API( VideoDigitizerError )
  1932. VDCompressOneFrameAsync            (VideoDigitizerComponent  ci)                                FIVEWORDINLINE(0x2F3C, 0x0000, 0x0045, 0x7000, 0xA82A);
  1933.  
  1934. EXTERN_API( VideoDigitizerError )
  1935. VDCompressDone                    (VideoDigitizerComponent  ci,
  1936.                                  Boolean *                done,
  1937.                                  Ptr *                    theData,
  1938.                                  long *                    dataSize,
  1939.                                  UInt8 *                similarity,
  1940.                                  TimeRecord *            t)                                    FIVEWORDINLINE(0x2F3C, 0x0014, 0x0046, 0x7000, 0xA82A);
  1941.  
  1942. EXTERN_API( VideoDigitizerError )
  1943. VDReleaseCompressBuffer            (VideoDigitizerComponent  ci,
  1944.                                  Ptr                     bufferAddr)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0047, 0x7000, 0xA82A);
  1945.  
  1946. EXTERN_API( VideoDigitizerError )
  1947. VDGetImageDescription            (VideoDigitizerComponent  ci,
  1948.                                  ImageDescriptionHandle  desc)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0048, 0x7000, 0xA82A);
  1949.  
  1950. EXTERN_API( VideoDigitizerError )
  1951. VDResetCompressSequence            (VideoDigitizerComponent  ci)                                FIVEWORDINLINE(0x2F3C, 0x0000, 0x0049, 0x7000, 0xA82A);
  1952.  
  1953. EXTERN_API( VideoDigitizerError )
  1954. VDSetCompressionOnOff            (VideoDigitizerComponent  ci,
  1955.                                  Boolean                 state)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x004A, 0x7000, 0xA82A);
  1956.  
  1957. EXTERN_API( VideoDigitizerError )
  1958. VDGetCompressionTypes            (VideoDigitizerComponent  ci,
  1959.                                  VDCompressionListHandle  h)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x004B, 0x7000, 0xA82A);
  1960.  
  1961. EXTERN_API( VideoDigitizerError )
  1962. VDSetTimeBase                    (VideoDigitizerComponent  ci,
  1963.                                  TimeBase                 t)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x004C, 0x7000, 0xA82A);
  1964.  
  1965. EXTERN_API( VideoDigitizerError )
  1966. VDSetFrameRate                    (VideoDigitizerComponent  ci,
  1967.                                  Fixed                     framesPerSecond)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x004D, 0x7000, 0xA82A);
  1968.  
  1969. EXTERN_API( VideoDigitizerError )
  1970. VDGetDataRate                    (VideoDigitizerComponent  ci,
  1971.                                  long *                    milliSecPerFrame,
  1972.                                  Fixed *                framesPerSecond,
  1973.                                  long *                    bytesPerSecond)                        FIVEWORDINLINE(0x2F3C, 0x000C, 0x004E, 0x7000, 0xA82A);
  1974.  
  1975. EXTERN_API( VideoDigitizerError )
  1976. VDGetSoundInputDriver            (VideoDigitizerComponent  ci,
  1977.                                  Str255                 soundDriverName)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x004F, 0x7000, 0xA82A);
  1978.  
  1979. EXTERN_API( VideoDigitizerError )
  1980. VDGetDMADepths                    (VideoDigitizerComponent  ci,
  1981.                                  long *                    depthArray,
  1982.                                  long *                    preferredDepth)                        FIVEWORDINLINE(0x2F3C, 0x0008, 0x0050, 0x7000, 0xA82A);
  1983.  
  1984. EXTERN_API( VideoDigitizerError )
  1985. VDGetPreferredTimeScale            (VideoDigitizerComponent  ci,
  1986.                                  TimeScale *            preferred)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0051, 0x7000, 0xA82A);
  1987.  
  1988. EXTERN_API( VideoDigitizerError )
  1989. VDReleaseAsyncBuffers            (VideoDigitizerComponent  ci)                                FIVEWORDINLINE(0x2F3C, 0x0000, 0x0052, 0x7000, 0xA82A);
  1990.  
  1991. /* 83 is reserved for compatibility reasons */
  1992. EXTERN_API( VideoDigitizerError )
  1993. VDSetDataRate                    (VideoDigitizerComponent  ci,
  1994.                                  long                     bytesPerSecond)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0054, 0x7000, 0xA82A);
  1995.  
  1996. EXTERN_API( VideoDigitizerError )
  1997. VDGetTimeCode                    (VideoDigitizerComponent  ci,
  1998.                                  TimeRecord *            atTime,
  1999.                                  void *                    timeCodeFormat,
  2000.                                  void *                    timeCodeTime)                        FIVEWORDINLINE(0x2F3C, 0x000C, 0x0055, 0x7000, 0xA82A);
  2001.  
  2002. EXTERN_API( VideoDigitizerError )
  2003. VDUseSafeBuffers                (VideoDigitizerComponent  ci,
  2004.                                  Boolean                 useSafeBuffers)                        FIVEWORDINLINE(0x2F3C, 0x0002, 0x0056, 0x7000, 0xA82A);
  2005.  
  2006. EXTERN_API( VideoDigitizerError )
  2007. VDGetSoundInputSource            (VideoDigitizerComponent  ci,
  2008.                                  long                     videoInput,
  2009.                                  long *                    soundInput)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0057, 0x7000, 0xA82A);
  2010.  
  2011. EXTERN_API( VideoDigitizerError )
  2012. VDGetCompressionTime            (VideoDigitizerComponent  ci,
  2013.                                  OSType                 compressionType,
  2014.                                  short                     depth,
  2015.                                  Rect *                    srcRect,
  2016.                                  CodecQ *                spatialQuality,
  2017.                                  CodecQ *                temporalQuality,
  2018.                                  unsigned long *        compressTime)                        FIVEWORDINLINE(0x2F3C, 0x0016, 0x0058, 0x7000, 0xA82A);
  2019.  
  2020. EXTERN_API( VideoDigitizerError )
  2021. VDSetPreferredPacketSize        (VideoDigitizerComponent  ci,
  2022.                                  long                     preferredPacketSizeInBytes)            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0059, 0x7000, 0xA82A);
  2023.  
  2024. EXTERN_API( VideoDigitizerError )
  2025. VDSetPreferredImageDimensions    (VideoDigitizerComponent  ci,
  2026.                                  long                     width,
  2027.                                  long                     height)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x005A, 0x7000, 0xA82A);
  2028.  
  2029. EXTERN_API( VideoDigitizerError )
  2030. VDGetPreferredImageDimensions    (VideoDigitizerComponent  ci,
  2031.                                  long *                    width,
  2032.                                  long *                    height)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x005B, 0x7000, 0xA82A);
  2033.  
  2034. EXTERN_API( VideoDigitizerError )
  2035. VDGetInputName                    (VideoDigitizerComponent  ci,
  2036.                                  long                     videoInput,
  2037.                                  Str255                 name)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x005C, 0x7000, 0xA82A);
  2038.  
  2039. EXTERN_API( VideoDigitizerError )
  2040. VDSetDestinationPort            (VideoDigitizerComponent  ci,
  2041.                                  CGrafPtr                 destPort)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x005D, 0x7000, 0xA82A);
  2042.  
  2043.  
  2044.  
  2045. /*
  2046.     General Sequence Grab stuff
  2047. */
  2048.  
  2049. typedef ComponentInstance                 SeqGrabComponent;
  2050. typedef ComponentInstance                 SGChannel;
  2051.  
  2052. enum {
  2053.     SeqGrabComponentType        = FOUR_CHAR_CODE('barg'),
  2054.     SeqGrabChannelType            = FOUR_CHAR_CODE('sgch'),
  2055.     SeqGrabPanelType            = FOUR_CHAR_CODE('sgpn'),
  2056.     SeqGrabCompressionPanelType    = FOUR_CHAR_CODE('cmpr'),
  2057.     SeqGrabSourcePanelType        = FOUR_CHAR_CODE('sour')
  2058. };
  2059.  
  2060.  
  2061. enum {
  2062.     seqGrabToDisk                = 1,
  2063.     seqGrabToMemory                = 2,
  2064.     seqGrabDontUseTempMemory    = 4,
  2065.     seqGrabAppendToFile            = 8,
  2066.     seqGrabDontAddMovieResource    = 16,
  2067.     seqGrabDontMakeMovie        = 32,
  2068.     seqGrabPreExtendFile        = 64,
  2069.     seqGrabDataProcIsInterruptSafe = 128,
  2070.     seqGrabDataProcDoesOverlappingReads = 256
  2071. };
  2072.  
  2073. typedef unsigned long                     SeqGrabDataOutputEnum;
  2074.  
  2075. enum {
  2076.     seqGrabRecord                = 1,
  2077.     seqGrabPreview                = 2,
  2078.     seqGrabPlayDuringRecord        = 4
  2079. };
  2080.  
  2081. typedef unsigned long                     SeqGrabUsageEnum;
  2082.  
  2083. enum {
  2084.     seqGrabHasBounds            = 1,
  2085.     seqGrabHasVolume            = 2,
  2086.     seqGrabHasDiscreteSamples    = 4
  2087. };
  2088.  
  2089. typedef unsigned long                     SeqGrabChannelInfoEnum;
  2090.  
  2091. struct SGOutputRecord {
  2092.     long                             data[1];
  2093. };
  2094. typedef struct SGOutputRecord            SGOutputRecord;
  2095.  
  2096. typedef SGOutputRecord *                SGOutput;
  2097.  
  2098. struct SeqGrabFrameInfo {
  2099.     long                             frameOffset;
  2100.     long                             frameTime;
  2101.     long                             frameSize;
  2102.     SGChannel                         frameChannel;
  2103.     long                             frameRefCon;
  2104. };
  2105. typedef struct SeqGrabFrameInfo            SeqGrabFrameInfo;
  2106. typedef SeqGrabFrameInfo *                SeqGrabFrameInfoPtr;
  2107.  
  2108. struct SeqGrabExtendedFrameInfo {
  2109.     wide                             frameOffset;
  2110.     long                             frameTime;
  2111.     long                             frameSize;
  2112.     SGChannel                         frameChannel;
  2113.     long                             frameRefCon;
  2114.     SGOutput                         frameOutput;
  2115. };
  2116. typedef struct SeqGrabExtendedFrameInfo    SeqGrabExtendedFrameInfo;
  2117. typedef SeqGrabExtendedFrameInfo *        SeqGrabExtendedFrameInfoPtr;
  2118.  
  2119. enum {
  2120.     grabPictOffScreen            = 1,
  2121.     grabPictIgnoreClip            = 2,
  2122.     grabPictCurrentImage        = 4
  2123. };
  2124.  
  2125.  
  2126. enum {
  2127.     sgFlagControlledGrab        = (1 << 0)
  2128. };
  2129.  
  2130. typedef CALLBACK_API( OSErr , SGDataProcPtr )(SGChannel c, Ptr p, long len, long *offset, long chRefCon, TimeValue time, short writeType, long refCon);
  2131. typedef STACK_UPP_TYPE(SGDataProcPtr)                             SGDataUPP;
  2132.  
  2133. struct SGDeviceName {
  2134.     Str63                             name;
  2135.     Handle                             icon;
  2136.     long                             flags;
  2137.     long                             refCon;
  2138.     long                             reserved;                    /* zero*/
  2139. };
  2140. typedef struct SGDeviceName                SGDeviceName;
  2141.  
  2142. enum {
  2143.     sgDeviceNameFlagDeviceUnavailable = (1 << 0)
  2144. };
  2145.  
  2146.  
  2147. struct SGDeviceListRecord {
  2148.     short                             count;
  2149.     short                             selectedIndex;
  2150.     long                             reserved;                    /* zero*/
  2151.     SGDeviceName                     entry[1];
  2152. };
  2153. typedef struct SGDeviceListRecord        SGDeviceListRecord;
  2154.  
  2155. typedef SGDeviceListRecord *            SGDeviceListPtr;
  2156. typedef SGDeviceListPtr *                SGDeviceList;
  2157.  
  2158. enum {
  2159.     sgDeviceListWithIcons        = (1 << 0),
  2160.     sgDeviceListDontCheckAvailability = (1 << 1)
  2161. };
  2162.  
  2163.  
  2164. enum {
  2165.     seqGrabWriteAppend            = 0,
  2166.     seqGrabWriteReserve            = 1,
  2167.     seqGrabWriteFill            = 2
  2168. };
  2169.  
  2170.  
  2171. enum {
  2172.     seqGrabUnpause                = 0,
  2173.     seqGrabPause                = 1,
  2174.     seqGrabPauseForMenu            = 3
  2175. };
  2176.  
  2177.  
  2178. enum {
  2179.     channelFlagDontOpenResFile    = 2,
  2180.     channelFlagHasDependency    = 4
  2181. };
  2182.  
  2183. typedef CALLBACK_API( Boolean , SGModalFilterProcPtr )(DialogPtr theDialog, const EventRecord *theEvent, short *itemHit, long refCon);
  2184. typedef STACK_UPP_TYPE(SGModalFilterProcPtr)                     SGModalFilterUPP;
  2185.  
  2186. enum {
  2187.     sgPanelFlagForPanel            = 1
  2188. };
  2189.  
  2190.  
  2191. enum {
  2192.     seqGrabSettingsPreviewOnly    = 1
  2193. };
  2194.  
  2195.  
  2196. enum {
  2197.     channelPlayNormal            = 0,
  2198.     channelPlayFast                = 1,
  2199.     channelPlayHighQuality        = 2,
  2200.     channelPlayAllData            = 4
  2201. };
  2202.  
  2203.  
  2204. EXTERN_API( ComponentResult )
  2205. SGInitialize                    (SeqGrabComponent         s)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0001, 0x7000, 0xA82A);
  2206.  
  2207. EXTERN_API( ComponentResult )
  2208. SGSetDataOutput                    (SeqGrabComponent         s,
  2209.                                  const FSSpec *            movieFile,
  2210.                                  long                     whereFlags)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0002, 0x7000, 0xA82A);
  2211.  
  2212. EXTERN_API( ComponentResult )
  2213. SGGetDataOutput                    (SeqGrabComponent         s,
  2214.                                  FSSpec *                movieFile,
  2215.                                  long *                    whereFlags)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0003, 0x7000, 0xA82A);
  2216.  
  2217. EXTERN_API( ComponentResult )
  2218. SGSetGWorld                        (SeqGrabComponent         s,
  2219.                                  CGrafPtr                 gp,
  2220.                                  GDHandle                 gd)                                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0004, 0x7000, 0xA82A);
  2221.  
  2222. EXTERN_API( ComponentResult )
  2223. SGGetGWorld                        (SeqGrabComponent         s,
  2224.                                  CGrafPtr *                gp,
  2225.                                  GDHandle *                gd)                                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0005, 0x7000, 0xA82A);
  2226.  
  2227. EXTERN_API( ComponentResult )
  2228. SGNewChannel                    (SeqGrabComponent         s,
  2229.                                  OSType                 channelType,
  2230.                                  SGChannel *            ref)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0006, 0x7000, 0xA82A);
  2231.  
  2232. EXTERN_API( ComponentResult )
  2233. SGDisposeChannel                (SeqGrabComponent         s,
  2234.                                  SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0007, 0x7000, 0xA82A);
  2235.  
  2236. EXTERN_API( ComponentResult )
  2237. SGStartPreview                    (SeqGrabComponent         s)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0010, 0x7000, 0xA82A);
  2238.  
  2239. EXTERN_API( ComponentResult )
  2240. SGStartRecord                    (SeqGrabComponent         s)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0011, 0x7000, 0xA82A);
  2241.  
  2242. EXTERN_API( ComponentResult )
  2243. SGIdle                            (SeqGrabComponent         s)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0012, 0x7000, 0xA82A);
  2244.  
  2245. EXTERN_API( ComponentResult )
  2246. SGStop                            (SeqGrabComponent         s)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0013, 0x7000, 0xA82A);
  2247.  
  2248. EXTERN_API( ComponentResult )
  2249. SGPause                            (SeqGrabComponent         s,
  2250.                                  Byte                     pause)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x0014, 0x7000, 0xA82A);
  2251.  
  2252. EXTERN_API( ComponentResult )
  2253. SGPrepare                        (SeqGrabComponent         s,
  2254.                                  Boolean                 prepareForPreview,
  2255.                                  Boolean                 prepareForRecord)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0015, 0x7000, 0xA82A);
  2256.  
  2257. EXTERN_API( ComponentResult )
  2258. SGRelease                        (SeqGrabComponent         s)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0016, 0x7000, 0xA82A);
  2259.  
  2260. EXTERN_API( Movie )
  2261. SGGetMovie                        (SeqGrabComponent         s)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0017, 0x7000, 0xA82A);
  2262.  
  2263. EXTERN_API( ComponentResult )
  2264. SGSetMaximumRecordTime            (SeqGrabComponent         s,
  2265.                                  unsigned long             ticks)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0018, 0x7000, 0xA82A);
  2266.  
  2267. EXTERN_API( ComponentResult )
  2268. SGGetMaximumRecordTime            (SeqGrabComponent         s,
  2269.                                  unsigned long *        ticks)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0019, 0x7000, 0xA82A);
  2270.  
  2271. EXTERN_API( ComponentResult )
  2272. SGGetStorageSpaceRemaining        (SeqGrabComponent         s,
  2273.                                  unsigned long *        bytes)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001A, 0x7000, 0xA82A);
  2274.  
  2275. EXTERN_API( ComponentResult )
  2276. SGGetTimeRemaining                (SeqGrabComponent         s,
  2277.                                  long *                    ticksLeft)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x001B, 0x7000, 0xA82A);
  2278.  
  2279. EXTERN_API( ComponentResult )
  2280. SGGrabPict                        (SeqGrabComponent         s,
  2281.                                  PicHandle *            p,
  2282.                                  const Rect *            bounds,
  2283.                                  short                     offscreenDepth,
  2284.                                  long                     grabPictFlags)                        FIVEWORDINLINE(0x2F3C, 0x000E, 0x001C, 0x7000, 0xA82A);
  2285.  
  2286. EXTERN_API( ComponentResult )
  2287. SGGetLastMovieResID                (SeqGrabComponent         s,
  2288.                                  short *                resID)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001D, 0x7000, 0xA82A);
  2289.  
  2290. EXTERN_API( ComponentResult )
  2291. SGSetFlags                        (SeqGrabComponent         s,
  2292.                                  long                     sgFlags)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x001E, 0x7000, 0xA82A);
  2293.  
  2294. EXTERN_API( ComponentResult )
  2295. SGGetFlags                        (SeqGrabComponent         s,
  2296.                                  long *                    sgFlags)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x001F, 0x7000, 0xA82A);
  2297.  
  2298. EXTERN_API( ComponentResult )
  2299. SGSetDataProc                    (SeqGrabComponent         s,
  2300.                                  SGDataUPP                 proc,
  2301.                                  long                     refCon)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0020, 0x7000, 0xA82A);
  2302.  
  2303. EXTERN_API( ComponentResult )
  2304. SGNewChannelFromComponent        (SeqGrabComponent         s,
  2305.                                  SGChannel *            newChannel,
  2306.                                  Component                 sgChannelComponent)                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0021, 0x7000, 0xA82A);
  2307.  
  2308. EXTERN_API( ComponentResult )
  2309. SGDisposeDeviceList                (SeqGrabComponent         s,
  2310.                                  SGDeviceList             list)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0022, 0x7000, 0xA82A);
  2311.  
  2312. EXTERN_API( ComponentResult )
  2313. SGAppendDeviceListToMenu        (SeqGrabComponent         s,
  2314.                                  SGDeviceList             list,
  2315.                                  MenuHandle             mh)                                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0023, 0x7000, 0xA82A);
  2316.  
  2317. EXTERN_API( ComponentResult )
  2318. SGSetSettings                    (SeqGrabComponent         s,
  2319.                                  UserData                 ud,
  2320.                                  long                     flags)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0024, 0x7000, 0xA82A);
  2321.  
  2322. EXTERN_API( ComponentResult )
  2323. SGGetSettings                    (SeqGrabComponent         s,
  2324.                                  UserData *                ud,
  2325.                                  long                     flags)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0025, 0x7000, 0xA82A);
  2326.  
  2327. EXTERN_API( ComponentResult )
  2328. SGGetIndChannel                    (SeqGrabComponent         s,
  2329.                                  short                     index,
  2330.                                  SGChannel *            ref,
  2331.                                  OSType *                chanType)                            FIVEWORDINLINE(0x2F3C, 0x000A, 0x0026, 0x7000, 0xA82A);
  2332.  
  2333. EXTERN_API( ComponentResult )
  2334. SGUpdate                        (SeqGrabComponent         s,
  2335.                                  RgnHandle                 updateRgn)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0027, 0x7000, 0xA82A);
  2336.  
  2337. EXTERN_API( ComponentResult )
  2338. SGGetPause                        (SeqGrabComponent         s,
  2339.                                  Byte *                    paused)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0028, 0x7000, 0xA82A);
  2340.  
  2341. typedef const Component *                ConstComponentListPtr;
  2342. EXTERN_API( ComponentResult )
  2343. SGSettingsDialog                (SeqGrabComponent         s,
  2344.                                  SGChannel                 c,
  2345.                                  short                     numPanels,
  2346.                                  ConstComponentListPtr     panelList,
  2347.                                  long                     flags,
  2348.                                  SGModalFilterUPP         proc,
  2349.                                  long                     procRefNum)                            FIVEWORDINLINE(0x2F3C, 0x0016, 0x0029, 0x7000, 0xA82A);
  2350.  
  2351. EXTERN_API( ComponentResult )
  2352. SGGetAlignmentProc                (SeqGrabComponent         s,
  2353.                                  ICMAlignmentProcRecordPtr  alignmentProc)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x002A, 0x7000, 0xA82A);
  2354.  
  2355. EXTERN_API( ComponentResult )
  2356. SGSetChannelSettings            (SeqGrabComponent         s,
  2357.                                  SGChannel                 c,
  2358.                                  UserData                 ud,
  2359.                                  long                     flags)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x002B, 0x7000, 0xA82A);
  2360.  
  2361. EXTERN_API( ComponentResult )
  2362. SGGetChannelSettings            (SeqGrabComponent         s,
  2363.                                  SGChannel                 c,
  2364.                                  UserData *                ud,
  2365.                                  long                     flags)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x002C, 0x7000, 0xA82A);
  2366.  
  2367. EXTERN_API( ComponentResult )
  2368. SGGetMode                        (SeqGrabComponent         s,
  2369.                                  Boolean *                previewMode,
  2370.                                  Boolean *                recordMode)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x002D, 0x7000, 0xA82A);
  2371.  
  2372. EXTERN_API( ComponentResult )
  2373. SGSetDataRef                    (SeqGrabComponent         s,
  2374.                                  Handle                 dataRef,
  2375.                                  OSType                 dataRefType,
  2376.                                  long                     whereFlags)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x002E, 0x7000, 0xA82A);
  2377.  
  2378. EXTERN_API( ComponentResult )
  2379. SGGetDataRef                    (SeqGrabComponent         s,
  2380.                                  Handle *                dataRef,
  2381.                                  OSType *                dataRefType,
  2382.                                  long *                    whereFlags)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x002F, 0x7000, 0xA82A);
  2383.  
  2384. EXTERN_API( ComponentResult )
  2385. SGNewOutput                        (SeqGrabComponent         s,
  2386.                                  Handle                 dataRef,
  2387.                                  OSType                 dataRefType,
  2388.                                  long                     whereFlags,
  2389.                                  SGOutput *                sgOut)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x0030, 0x7000, 0xA82A);
  2390.  
  2391. EXTERN_API( ComponentResult )
  2392. SGDisposeOutput                    (SeqGrabComponent         s,
  2393.                                  SGOutput                 sgOut)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0031, 0x7000, 0xA82A);
  2394.  
  2395. EXTERN_API( ComponentResult )
  2396. SGSetOutputFlags                (SeqGrabComponent         s,
  2397.                                  SGOutput                 sgOut,
  2398.                                  long                     whereFlags)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0032, 0x7000, 0xA82A);
  2399.  
  2400. EXTERN_API( ComponentResult )
  2401. SGSetChannelOutput                (SeqGrabComponent         s,
  2402.                                  SGChannel                 c,
  2403.                                  SGOutput                 sgOut)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0033, 0x7000, 0xA82A);
  2404.  
  2405. EXTERN_API( ComponentResult )
  2406. SGGetDataOutputStorageSpaceRemaining (SeqGrabComponent     s,
  2407.                                  SGOutput                 sgOut,
  2408.                                  unsigned long *        space)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0034, 0x7000, 0xA82A);
  2409.  
  2410. EXTERN_API( ComponentResult )
  2411. SGHandleUpdateEvent                (SeqGrabComponent         s,
  2412.                                  const EventRecord *    event,
  2413.                                  Boolean *                handled)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0035, 0x7000, 0xA82A);
  2414.  
  2415. EXTERN_API( ComponentResult )
  2416. SGSetOutputNextOutput            (SeqGrabComponent         s,
  2417.                                  SGOutput                 sgOut,
  2418.                                  SGOutput                 nextOut)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0036, 0x7000, 0xA82A);
  2419.  
  2420. EXTERN_API( ComponentResult )
  2421. SGGetOutputNextOutput            (SeqGrabComponent         s,
  2422.                                  SGOutput                 sgOut,
  2423.                                  SGOutput *                nextOut)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0037, 0x7000, 0xA82A);
  2424.  
  2425. EXTERN_API( ComponentResult )
  2426. SGSetOutputMaximumOffset        (SeqGrabComponent         s,
  2427.                                  SGOutput                 sgOut,
  2428.                                  const wide *            maxOffset)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0038, 0x7000, 0xA82A);
  2429.  
  2430. EXTERN_API( ComponentResult )
  2431. SGGetOutputMaximumOffset        (SeqGrabComponent         s,
  2432.                                  SGOutput                 sgOut,
  2433.                                  wide *                    maxOffset)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0039, 0x7000, 0xA82A);
  2434.  
  2435. EXTERN_API( ComponentResult )
  2436. SGGetOutputDataReference        (SeqGrabComponent         s,
  2437.                                  SGOutput                 sgOut,
  2438.                                  Handle *                dataRef,
  2439.                                  OSType *                dataRefType)                        FIVEWORDINLINE(0x2F3C, 0x000C, 0x003A, 0x7000, 0xA82A);
  2440.  
  2441. EXTERN_API( ComponentResult )
  2442. SGWriteExtendedMovieData        (SeqGrabComponent         s,
  2443.                                  SGChannel                 c,
  2444.                                  Ptr                     p,
  2445.                                  long                     len,
  2446.                                  wide *                    offset,
  2447.                                  SGOutput *                sgOut)                                FIVEWORDINLINE(0x2F3C, 0x0014, 0x003B, 0x7000, 0xA82A);
  2448.  
  2449. /*
  2450.     calls from Channel to seqGrab
  2451. */
  2452. EXTERN_API( ComponentResult )
  2453. SGWriteMovieData                (SeqGrabComponent         s,
  2454.                                  SGChannel                 c,
  2455.                                  Ptr                     p,
  2456.                                  long                     len,
  2457.                                  long *                    offset)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x0100, 0x7000, 0xA82A);
  2458.  
  2459. EXTERN_API( ComponentResult )
  2460. SGAddFrameReference                (SeqGrabComponent         s,
  2461.                                  SeqGrabFrameInfoPtr     frameInfo)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
  2462.  
  2463. EXTERN_API( ComponentResult )
  2464. SGGetNextFrameReference            (SeqGrabComponent         s,
  2465.                                  SeqGrabFrameInfoPtr     frameInfo,
  2466.                                  TimeValue *            frameDuration,
  2467.                                  long *                    frameNumber)                        FIVEWORDINLINE(0x2F3C, 0x000C, 0x0102, 0x7000, 0xA82A);
  2468.  
  2469. EXTERN_API( ComponentResult )
  2470. SGGetTimeBase                    (SeqGrabComponent         s,
  2471.                                  TimeBase *                tb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0103, 0x7000, 0xA82A);
  2472.  
  2473. EXTERN_API( ComponentResult )
  2474. SGSortDeviceList                (SeqGrabComponent         s,
  2475.                                  SGDeviceList             list)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0104, 0x7000, 0xA82A);
  2476.  
  2477. EXTERN_API( ComponentResult )
  2478. SGAddMovieData                    (SeqGrabComponent         s,
  2479.                                  SGChannel                 c,
  2480.                                  Ptr                     p,
  2481.                                  long                     len,
  2482.                                  long *                    offset,
  2483.                                  long                     chRefCon,
  2484.                                  TimeValue                 time,
  2485.                                  short                     writeType)                            FIVEWORDINLINE(0x2F3C, 0x001A, 0x0105, 0x7000, 0xA82A);
  2486.  
  2487. EXTERN_API( ComponentResult )
  2488. SGChangedSource                    (SeqGrabComponent         s,
  2489.                                  SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0106, 0x7000, 0xA82A);
  2490.  
  2491. EXTERN_API( ComponentResult )
  2492. SGAddExtendedFrameReference        (SeqGrabComponent         s,
  2493.                                  SeqGrabExtendedFrameInfoPtr  frameInfo)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0107, 0x7000, 0xA82A);
  2494.  
  2495. EXTERN_API( ComponentResult )
  2496. SGGetNextExtendedFrameReference    (SeqGrabComponent         s,
  2497.                                  SeqGrabExtendedFrameInfoPtr  frameInfo,
  2498.                                  TimeValue *            frameDuration,
  2499.                                  long *                    frameNumber)                        FIVEWORDINLINE(0x2F3C, 0x000C, 0x0108, 0x7000, 0xA82A);
  2500.  
  2501. EXTERN_API( ComponentResult )
  2502. SGAddExtendedMovieData            (SeqGrabComponent         s,
  2503.                                  SGChannel                 c,
  2504.                                  Ptr                     p,
  2505.                                  long                     len,
  2506.                                  wide *                    offset,
  2507.                                  long                     chRefCon,
  2508.                                  TimeValue                 time,
  2509.                                  short                     writeType,
  2510.                                  SGOutput *                whichOutput)                        FIVEWORDINLINE(0x2F3C, 0x001E, 0x0109, 0x7000, 0xA82A);
  2511.  
  2512. EXTERN_API( ComponentResult )
  2513. SGAddOutputDataRefToMedia        (SeqGrabComponent         s,
  2514.                                  SGOutput                 sgOut,
  2515.                                  Media                     theMedia,
  2516.                                  SampleDescriptionHandle  desc)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x010A, 0x7000, 0xA82A);
  2517.  
  2518.  
  2519.  
  2520. /*** Sequence Grab CHANNEL Component Stuff ***/
  2521.  
  2522. EXTERN_API( ComponentResult )
  2523. SGSetChannelUsage                (SGChannel                 c,
  2524.                                  long                     usage)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0080, 0x7000, 0xA82A);
  2525.  
  2526. EXTERN_API( ComponentResult )
  2527. SGGetChannelUsage                (SGChannel                 c,
  2528.                                  long *                    usage)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0081, 0x7000, 0xA82A);
  2529.  
  2530. EXTERN_API( ComponentResult )
  2531. SGSetChannelBounds                (SGChannel                 c,
  2532.                                  const Rect *            bounds)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0082, 0x7000, 0xA82A);
  2533.  
  2534. EXTERN_API( ComponentResult )
  2535. SGGetChannelBounds                (SGChannel                 c,
  2536.                                  Rect *                    bounds)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0083, 0x7000, 0xA82A);
  2537.  
  2538. EXTERN_API( ComponentResult )
  2539. SGSetChannelVolume                (SGChannel                 c,
  2540.                                  short                     volume)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x0084, 0x7000, 0xA82A);
  2541.  
  2542. EXTERN_API( ComponentResult )
  2543. SGGetChannelVolume                (SGChannel                 c,
  2544.                                  short *                volume)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0085, 0x7000, 0xA82A);
  2545.  
  2546. EXTERN_API( ComponentResult )
  2547. SGGetChannelInfo                (SGChannel                 c,
  2548.                                  long *                    channelInfo)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0086, 0x7000, 0xA82A);
  2549.  
  2550. EXTERN_API( ComponentResult )
  2551. SGSetChannelPlayFlags            (SGChannel                 c,
  2552.                                  long                     playFlags)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0087, 0x7000, 0xA82A);
  2553.  
  2554. EXTERN_API( ComponentResult )
  2555. SGGetChannelPlayFlags            (SGChannel                 c,
  2556.                                  long *                    playFlags)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0088, 0x7000, 0xA82A);
  2557.  
  2558. EXTERN_API( ComponentResult )
  2559. SGSetChannelMaxFrames            (SGChannel                 c,
  2560.                                  long                     frameCount)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0089, 0x7000, 0xA82A);
  2561.  
  2562. EXTERN_API( ComponentResult )
  2563. SGGetChannelMaxFrames            (SGChannel                 c,
  2564.                                  long *                    frameCount)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008A, 0x7000, 0xA82A);
  2565.  
  2566. EXTERN_API( ComponentResult )
  2567. SGSetChannelRefCon                (SGChannel                 c,
  2568.                                  long                     refCon)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x008B, 0x7000, 0xA82A);
  2569.  
  2570. EXTERN_API( ComponentResult )
  2571. SGSetChannelClip                (SGChannel                 c,
  2572.                                  RgnHandle                 theClip)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008C, 0x7000, 0xA82A);
  2573.  
  2574. EXTERN_API( ComponentResult )
  2575. SGGetChannelClip                (SGChannel                 c,
  2576.                                  RgnHandle *            theClip)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008D, 0x7000, 0xA82A);
  2577.  
  2578. EXTERN_API( ComponentResult )
  2579. SGGetChannelSampleDescription    (SGChannel                 c,
  2580.                                  Handle                 sampleDesc)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008E, 0x7000, 0xA82A);
  2581.  
  2582. EXTERN_API( ComponentResult )
  2583. SGGetChannelDeviceList            (SGChannel                 c,
  2584.                                  long                     selectionFlags,
  2585.                                  SGDeviceList *            list)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x008F, 0x7000, 0xA82A);
  2586.  
  2587. EXTERN_API( ComponentResult )
  2588. SGSetChannelDevice                (SGChannel                 c,
  2589.                                  StringPtr                 name)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0090, 0x7000, 0xA82A);
  2590.  
  2591. EXTERN_API( ComponentResult )
  2592. SGSetChannelMatrix                (SGChannel                 c,
  2593.                                  const MatrixRecord *    m)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0091, 0x7000, 0xA82A);
  2594.  
  2595. EXTERN_API( ComponentResult )
  2596. SGGetChannelMatrix                (SGChannel                 c,
  2597.                                  MatrixRecord *            m)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0092, 0x7000, 0xA82A);
  2598.  
  2599. EXTERN_API( ComponentResult )
  2600. SGGetChannelTimeScale            (SGChannel                 c,
  2601.                                  TimeScale *            scale)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0093, 0x7000, 0xA82A);
  2602.  
  2603. EXTERN_API( ComponentResult )
  2604. SGChannelPutPicture                (SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0094, 0x7000, 0xA82A);
  2605.  
  2606. EXTERN_API( ComponentResult )
  2607. SGChannelSetRequestedDataRate    (SGChannel                 c,
  2608.                                  long                     bytesPerSecond)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0095, 0x7000, 0xA82A);
  2609.  
  2610. EXTERN_API( ComponentResult )
  2611. SGChannelGetRequestedDataRate    (SGChannel                 c,
  2612.                                  long *                    bytesPerSecond)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0096, 0x7000, 0xA82A);
  2613.  
  2614. EXTERN_API( ComponentResult )
  2615. SGChannelSetDataSourceName        (SGChannel                 c,
  2616.                                  ConstStr255Param         name,
  2617.                                  ScriptCode             scriptTag)                            FIVEWORDINLINE(0x2F3C, 0x0006, 0x0097, 0x7000, 0xA82A);
  2618.  
  2619. EXTERN_API( ComponentResult )
  2620. SGChannelGetDataSourceName        (SGChannel                 c,
  2621.                                  Str255                 name,
  2622.                                  ScriptCode *            scriptTag)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0098, 0x7000, 0xA82A);
  2623.  
  2624. /*
  2625.     calls from seqGrab to Channel
  2626. */
  2627. EXTERN_API( ComponentResult )
  2628. SGInitChannel                    (SGChannel                 c,
  2629.                                  SeqGrabComponent         owner)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0180, 0x7000, 0xA82A);
  2630.  
  2631. EXTERN_API( ComponentResult )
  2632. SGWriteSamples                    (SGChannel                 c,
  2633.                                  Movie                     m,
  2634.                                  AliasHandle             theFile)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0181, 0x7000, 0xA82A);
  2635.  
  2636. EXTERN_API( ComponentResult )
  2637. SGGetDataRate                    (SGChannel                 c,
  2638.                                  long *                    bytesPerSecond)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0182, 0x7000, 0xA82A);
  2639.  
  2640. EXTERN_API( ComponentResult )
  2641. SGAlignChannelRect                (SGChannel                 c,
  2642.                                  Rect *                    r)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0183, 0x7000, 0xA82A);
  2643.  
  2644. /*
  2645.     Dorky dialog panel calls
  2646. */
  2647. EXTERN_API( ComponentResult )
  2648. SGPanelGetDitl                    (SeqGrabComponent         s,
  2649.                                  Handle *                ditl)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0200, 0x7000, 0xA82A);
  2650.  
  2651. EXTERN_API( ComponentResult )
  2652. SGPanelGetTitle                    (SeqGrabComponent         s,
  2653.                                  Str255                 title)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0201, 0x7000, 0xA82A);
  2654.  
  2655. EXTERN_API( ComponentResult )
  2656. SGPanelCanRun                    (SeqGrabComponent         s,
  2657.                                  SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0202, 0x7000, 0xA82A);
  2658.  
  2659. EXTERN_API( ComponentResult )
  2660. SGPanelInstall                    (SeqGrabComponent         s,
  2661.                                  SGChannel                 c,
  2662.                                  DialogPtr                 d,
  2663.                                  short                     itemOffset)                            FIVEWORDINLINE(0x2F3C, 0x000A, 0x0203, 0x7000, 0xA82A);
  2664.  
  2665. EXTERN_API( ComponentResult )
  2666. SGPanelEvent                    (SeqGrabComponent         s,
  2667.                                  SGChannel                 c,
  2668.                                  DialogPtr                 d,
  2669.                                  short                     itemOffset,
  2670.                                  const EventRecord *    theEvent,
  2671.                                  short *                itemHit,
  2672.                                  Boolean *                handled)                            FIVEWORDINLINE(0x2F3C, 0x0016, 0x0204, 0x7000, 0xA82A);
  2673.  
  2674. EXTERN_API( ComponentResult )
  2675. SGPanelItem                        (SeqGrabComponent         s,
  2676.                                  SGChannel                 c,
  2677.                                  DialogPtr                 d,
  2678.                                  short                     itemOffset,
  2679.                                  short                     itemNum)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x0205, 0x7000, 0xA82A);
  2680.  
  2681. EXTERN_API( ComponentResult )
  2682. SGPanelRemove                    (SeqGrabComponent         s,
  2683.                                  SGChannel                 c,
  2684.                                  DialogPtr                 d,
  2685.                                  short                     itemOffset)                            FIVEWORDINLINE(0x2F3C, 0x000A, 0x0206, 0x7000, 0xA82A);
  2686.  
  2687. EXTERN_API( ComponentResult )
  2688. SGPanelSetGrabber                (SeqGrabComponent         s,
  2689.                                  SeqGrabComponent         sg)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0207, 0x7000, 0xA82A);
  2690.  
  2691. EXTERN_API( ComponentResult )
  2692. SGPanelSetResFile                (SeqGrabComponent         s,
  2693.                                  short                     resRef)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x0208, 0x7000, 0xA82A);
  2694.  
  2695. EXTERN_API( ComponentResult )
  2696. SGPanelGetSettings                (SeqGrabComponent         s,
  2697.                                  SGChannel                 c,
  2698.                                  UserData *                ud,
  2699.                                  long                     flags)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0209, 0x7000, 0xA82A);
  2700.  
  2701. EXTERN_API( ComponentResult )
  2702. SGPanelSetSettings                (SeqGrabComponent         s,
  2703.                                  SGChannel                 c,
  2704.                                  UserData                 ud,
  2705.                                  long                     flags)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x020A, 0x7000, 0xA82A);
  2706.  
  2707. EXTERN_API( ComponentResult )
  2708. SGPanelValidateInput            (SeqGrabComponent         s,
  2709.                                  Boolean *                ok)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x020B, 0x7000, 0xA82A);
  2710.  
  2711. EXTERN_API( ComponentResult )
  2712. SGPanelSetEventFilter            (SeqGrabComponent         s,
  2713.                                  SGModalFilterUPP         proc,
  2714.                                  long                     refCon)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x020C, 0x7000, 0xA82A);
  2715.  
  2716.  
  2717. /*** Sequence Grab VIDEO CHANNEL Component Stuff ***/
  2718. /*
  2719.     Video stuff
  2720. */
  2721.  
  2722. struct SGCompressInfo {
  2723.     Ptr                             buffer;
  2724.     unsigned long                     bufferSize;
  2725.     UInt8                             similarity;
  2726.     UInt8                             reserved;
  2727. };
  2728. typedef struct SGCompressInfo            SGCompressInfo;
  2729. typedef CALLBACK_API( ComponentResult , SGGrabBottleProcPtr )(SGChannel c, short bufferNum, long refCon);
  2730. typedef CALLBACK_API( ComponentResult , SGGrabCompleteBottleProcPtr )(SGChannel c, short bufferNum, Boolean *done, long refCon);
  2731. typedef CALLBACK_API( ComponentResult , SGDisplayBottleProcPtr )(SGChannel c, short bufferNum, MatrixRecord *mp, RgnHandle clipRgn, long refCon);
  2732. typedef CALLBACK_API( ComponentResult , SGCompressBottleProcPtr )(SGChannel c, short bufferNum, long refCon);
  2733. typedef CALLBACK_API( ComponentResult , SGCompressCompleteBottleProcPtr )(SGChannel c, short bufferNum, Boolean *done, SGCompressInfo *ci, long refCon);
  2734. typedef CALLBACK_API( ComponentResult , SGAddFrameBottleProcPtr )(SGChannel c, short bufferNum, TimeValue atTime, TimeScale scale, const SGCompressInfo *ci, long refCon);
  2735. typedef CALLBACK_API( ComponentResult , SGTransferFrameBottleProcPtr )(SGChannel c, short bufferNum, MatrixRecord *mp, RgnHandle clipRgn, long refCon);
  2736. typedef CALLBACK_API( ComponentResult , SGGrabCompressCompleteBottleProcPtr )(SGChannel c, Boolean *done, SGCompressInfo *ci, TimeRecord *t, long refCon);
  2737. typedef CALLBACK_API( ComponentResult , SGDisplayCompressBottleProcPtr )(SGChannel c, Ptr dataPtr, ImageDescriptionHandle desc, MatrixRecord *mp, RgnHandle clipRgn, long refCon);
  2738. typedef STACK_UPP_TYPE(SGGrabBottleProcPtr)                     SGGrabBottleUPP;
  2739. typedef STACK_UPP_TYPE(SGGrabCompleteBottleProcPtr)             SGGrabCompleteBottleUPP;
  2740. typedef STACK_UPP_TYPE(SGDisplayBottleProcPtr)                     SGDisplayBottleUPP;
  2741. typedef STACK_UPP_TYPE(SGCompressBottleProcPtr)                 SGCompressBottleUPP;
  2742. typedef STACK_UPP_TYPE(SGCompressCompleteBottleProcPtr)         SGCompressCompleteBottleUPP;
  2743. typedef STACK_UPP_TYPE(SGAddFrameBottleProcPtr)                 SGAddFrameBottleUPP;
  2744. typedef STACK_UPP_TYPE(SGTransferFrameBottleProcPtr)             SGTransferFrameBottleUPP;
  2745. typedef STACK_UPP_TYPE(SGGrabCompressCompleteBottleProcPtr)     SGGrabCompressCompleteBottleUPP;
  2746. typedef STACK_UPP_TYPE(SGDisplayCompressBottleProcPtr)             SGDisplayCompressBottleUPP;
  2747.  
  2748. struct VideoBottles {
  2749.     short                             procCount;
  2750.     SGGrabBottleUPP                 grabProc;
  2751.     SGGrabCompleteBottleUPP         grabCompleteProc;
  2752.     SGDisplayBottleUPP                 displayProc;
  2753.     SGCompressBottleUPP             compressProc;
  2754.     SGCompressCompleteBottleUPP     compressCompleteProc;
  2755.     SGAddFrameBottleUPP             addFrameProc;
  2756.     SGTransferFrameBottleUPP         transferFrameProc;
  2757.     SGGrabCompressCompleteBottleUPP  grabCompressCompleteProc;
  2758.     SGDisplayCompressBottleUPP         displayCompressProc;
  2759. };
  2760. typedef struct VideoBottles                VideoBottles;
  2761. EXTERN_API( ComponentResult )
  2762. SGGetSrcVideoBounds                (SGChannel                 c,
  2763.                                  Rect *                    r)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0100, 0x7000, 0xA82A);
  2764.  
  2765. EXTERN_API( ComponentResult )
  2766. SGSetVideoRect                    (SGChannel                 c,
  2767.                                  const Rect *            r)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
  2768.  
  2769. EXTERN_API( ComponentResult )
  2770. SGGetVideoRect                    (SGChannel                 c,
  2771.                                  Rect *                    r)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0102, 0x7000, 0xA82A);
  2772.  
  2773. EXTERN_API( ComponentResult )
  2774. SGGetVideoCompressorType        (SGChannel                 c,
  2775.                                  OSType *                compressorType)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0103, 0x7000, 0xA82A);
  2776.  
  2777. EXTERN_API( ComponentResult )
  2778. SGSetVideoCompressorType        (SGChannel                 c,
  2779.                                  OSType                 compressorType)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0104, 0x7000, 0xA82A);
  2780.  
  2781. EXTERN_API( ComponentResult )
  2782. SGSetVideoCompressor            (SGChannel                 c,
  2783.                                  short                     depth,
  2784.                                  CompressorComponent     compressor,
  2785.                                  CodecQ                 spatialQuality,
  2786.                                  CodecQ                 temporalQuality,
  2787.                                  long                     keyFrameRate)                        FIVEWORDINLINE(0x2F3C, 0x0012, 0x0105, 0x7000, 0xA82A);
  2788.  
  2789. EXTERN_API( ComponentResult )
  2790. SGGetVideoCompressor            (SGChannel                 c,
  2791.                                  short *                depth,
  2792.                                  CompressorComponent *    compressor,
  2793.                                  CodecQ *                spatialQuality,
  2794.                                  CodecQ *                temporalQuality,
  2795.                                  long *                    keyFrameRate)                        FIVEWORDINLINE(0x2F3C, 0x0014, 0x0106, 0x7000, 0xA82A);
  2796.  
  2797. EXTERN_API( ComponentInstance )
  2798. SGGetVideoDigitizerComponent    (SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0107, 0x7000, 0xA82A);
  2799.  
  2800. EXTERN_API( ComponentResult )
  2801. SGSetVideoDigitizerComponent    (SGChannel                 c,
  2802.                                  ComponentInstance         vdig)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0108, 0x7000, 0xA82A);
  2803.  
  2804. EXTERN_API( ComponentResult )
  2805. SGVideoDigitizerChanged            (SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0109, 0x7000, 0xA82A);
  2806.  
  2807. EXTERN_API( ComponentResult )
  2808. SGSetVideoBottlenecks            (SGChannel                 c,
  2809.                                  VideoBottles *            vb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x010A, 0x7000, 0xA82A);
  2810.  
  2811. EXTERN_API( ComponentResult )
  2812. SGGetVideoBottlenecks            (SGChannel                 c,
  2813.                                  VideoBottles *            vb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x010B, 0x7000, 0xA82A);
  2814.  
  2815. EXTERN_API( ComponentResult )
  2816. SGGrabFrame                        (SGChannel                 c,
  2817.                                  short                     bufferNum)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x010C, 0x7000, 0xA82A);
  2818.  
  2819. EXTERN_API( ComponentResult )
  2820. SGGrabFrameComplete                (SGChannel                 c,
  2821.                                  short                     bufferNum,
  2822.                                  Boolean *                done)                                FIVEWORDINLINE(0x2F3C, 0x0006, 0x010D, 0x7000, 0xA82A);
  2823.  
  2824. EXTERN_API( ComponentResult )
  2825. SGDisplayFrame                    (SGChannel                 c,
  2826.                                  short                     bufferNum,
  2827.                                  const MatrixRecord *    mp,
  2828.                                  RgnHandle                 clipRgn)                            FIVEWORDINLINE(0x2F3C, 0x000A, 0x010E, 0x7000, 0xA82A);
  2829.  
  2830. EXTERN_API( ComponentResult )
  2831. SGCompressFrame                    (SGChannel                 c,
  2832.                                  short                     bufferNum)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x010F, 0x7000, 0xA82A);
  2833.  
  2834. EXTERN_API( ComponentResult )
  2835. SGCompressFrameComplete            (SGChannel                 c,
  2836.                                  short                     bufferNum,
  2837.                                  Boolean *                done,
  2838.                                  SGCompressInfo *        ci)                                    FIVEWORDINLINE(0x2F3C, 0x000A, 0x0110, 0x7000, 0xA82A);
  2839.  
  2840. EXTERN_API( ComponentResult )
  2841. SGAddFrame                        (SGChannel                 c,
  2842.                                  short                     bufferNum,
  2843.                                  TimeValue                 atTime,
  2844.                                  TimeScale                 scale,
  2845.                                  const SGCompressInfo *    ci)                                    FIVEWORDINLINE(0x2F3C, 0x000E, 0x0111, 0x7000, 0xA82A);
  2846.  
  2847. EXTERN_API( ComponentResult )
  2848. SGTransferFrameForCompress        (SGChannel                 c,
  2849.                                  short                     bufferNum,
  2850.                                  const MatrixRecord *    mp,
  2851.                                  RgnHandle                 clipRgn)                            FIVEWORDINLINE(0x2F3C, 0x000A, 0x0112, 0x7000, 0xA82A);
  2852.  
  2853. EXTERN_API( ComponentResult )
  2854. SGSetCompressBuffer                (SGChannel                 c,
  2855.                                  short                     depth,
  2856.                                  const Rect *            compressSize)                        FIVEWORDINLINE(0x2F3C, 0x0006, 0x0113, 0x7000, 0xA82A);
  2857.  
  2858. EXTERN_API( ComponentResult )
  2859. SGGetCompressBuffer                (SGChannel                 c,
  2860.                                  short *                depth,
  2861.                                  Rect *                    compressSize)                        FIVEWORDINLINE(0x2F3C, 0x0008, 0x0114, 0x7000, 0xA82A);
  2862.  
  2863. EXTERN_API( ComponentResult )
  2864. SGGetBufferInfo                    (SGChannel                 c,
  2865.                                  short                     bufferNum,
  2866.                                  PixMapHandle *            bufferPM,
  2867.                                  Rect *                    bufferRect,
  2868.                                  GWorldPtr *            compressBuffer,
  2869.                                  Rect *                    compressBufferRect)                    FIVEWORDINLINE(0x2F3C, 0x0012, 0x0115, 0x7000, 0xA82A);
  2870.  
  2871. EXTERN_API( ComponentResult )
  2872. SGSetUseScreenBuffer            (SGChannel                 c,
  2873.                                  Boolean                 useScreenBuffer)                    FIVEWORDINLINE(0x2F3C, 0x0002, 0x0116, 0x7000, 0xA82A);
  2874.  
  2875. EXTERN_API( ComponentResult )
  2876. SGGetUseScreenBuffer            (SGChannel                 c,
  2877.                                  Boolean *                useScreenBuffer)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0117, 0x7000, 0xA82A);
  2878.  
  2879. EXTERN_API( ComponentResult )
  2880. SGGrabCompressComplete            (SGChannel                 c,
  2881.                                  Boolean *                done,
  2882.                                  SGCompressInfo *        ci,
  2883.                                  TimeRecord *            tr)                                    FIVEWORDINLINE(0x2F3C, 0x000C, 0x0118, 0x7000, 0xA82A);
  2884.  
  2885. EXTERN_API( ComponentResult )
  2886. SGDisplayCompress                (SGChannel                 c,
  2887.                                  Ptr                     dataPtr,
  2888.                                  ImageDescriptionHandle  desc,
  2889.                                  MatrixRecord *            mp,
  2890.                                  RgnHandle                 clipRgn)                            FIVEWORDINLINE(0x2F3C, 0x0010, 0x0119, 0x7000, 0xA82A);
  2891.  
  2892. EXTERN_API( ComponentResult )
  2893. SGSetFrameRate                    (SGChannel                 c,
  2894.                                  Fixed                     frameRate)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x011A, 0x7000, 0xA82A);
  2895.  
  2896. EXTERN_API( ComponentResult )
  2897. SGGetFrameRate                    (SGChannel                 c,
  2898.                                  Fixed *                frameRate)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x011B, 0x7000, 0xA82A);
  2899.  
  2900.  
  2901. EXTERN_API( ComponentResult )
  2902. SGSetPreferredPacketSize        (SGChannel                 c,
  2903.                                  long                     preferredPacketSizeInBytes)            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0121, 0x7000, 0xA82A);
  2904.  
  2905. EXTERN_API( ComponentResult )
  2906. SGGetPreferredPacketSize        (SGChannel                 c,
  2907.                                  long *                    preferredPacketSizeInBytes)            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0122, 0x7000, 0xA82A);
  2908.  
  2909. EXTERN_API( ComponentResult )
  2910. SGSetUserVideoCompressorList    (SGChannel                 c,
  2911.                                  Handle                 compressorTypes)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0123, 0x7000, 0xA82A);
  2912.  
  2913. EXTERN_API( ComponentResult )
  2914. SGGetUserVideoCompressorList    (SGChannel                 c,
  2915.                                  Handle *                compressorTypes)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0124, 0x7000, 0xA82A);
  2916.  
  2917. /*** Sequence Grab SOUND CHANNEL Component Stuff ***/
  2918.  
  2919. /*
  2920.     Sound stuff
  2921. */
  2922. EXTERN_API( ComponentResult )
  2923. SGSetSoundInputDriver            (SGChannel                 c,
  2924.                                  ConstStr255Param         driverName)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0100, 0x7000, 0xA82A);
  2925.  
  2926. EXTERN_API( long )
  2927. SGGetSoundInputDriver            (SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0101, 0x7000, 0xA82A);
  2928.  
  2929. EXTERN_API( ComponentResult )
  2930. SGSoundInputDriverChanged        (SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0102, 0x7000, 0xA82A);
  2931.  
  2932. EXTERN_API( ComponentResult )
  2933. SGSetSoundRecordChunkSize        (SGChannel                 c,
  2934.                                  long                     seconds)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0103, 0x7000, 0xA82A);
  2935.  
  2936. EXTERN_API( long )
  2937. SGGetSoundRecordChunkSize        (SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0104, 0x7000, 0xA82A);
  2938.  
  2939. EXTERN_API( ComponentResult )
  2940. SGSetSoundInputRate                (SGChannel                 c,
  2941.                                  Fixed                     rate)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0105, 0x7000, 0xA82A);
  2942.  
  2943. EXTERN_API( Fixed )
  2944. SGGetSoundInputRate                (SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0106, 0x7000, 0xA82A);
  2945.  
  2946. EXTERN_API( ComponentResult )
  2947. SGSetSoundInputParameters        (SGChannel                 c,
  2948.                                  short                     sampleSize,
  2949.                                  short                     numChannels,
  2950.                                  OSType                 compressionType)                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0107, 0x7000, 0xA82A);
  2951.  
  2952. EXTERN_API( ComponentResult )
  2953. SGGetSoundInputParameters        (SGChannel                 c,
  2954.                                  short *                sampleSize,
  2955.                                  short *                numChannels,
  2956.                                  OSType *                compressionType)                    FIVEWORDINLINE(0x2F3C, 0x000C, 0x0108, 0x7000, 0xA82A);
  2957.  
  2958. EXTERN_API( ComponentResult )
  2959. SGSetAdditionalSoundRates        (SGChannel                 c,
  2960.                                  Handle                 rates)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0109, 0x7000, 0xA82A);
  2961.  
  2962. EXTERN_API( ComponentResult )
  2963. SGGetAdditionalSoundRates        (SGChannel                 c,
  2964.                                  Handle *                rates)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x010A, 0x7000, 0xA82A);
  2965.  
  2966. /*
  2967.     Text stuff
  2968. */
  2969. EXTERN_API( ComponentResult )
  2970. SGSetFontName                    (SGChannel                 c,
  2971.                                  StringPtr                 pstr)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0100, 0x7000, 0xA82A);
  2972.  
  2973. EXTERN_API( ComponentResult )
  2974. SGSetFontSize                    (SGChannel                 c,
  2975.                                  short                     fontSize)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x0101, 0x7000, 0xA82A);
  2976.  
  2977. EXTERN_API( ComponentResult )
  2978. SGSetTextForeColor                (SGChannel                 c,
  2979.                                  RGBColor *                theColor)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0102, 0x7000, 0xA82A);
  2980.  
  2981. EXTERN_API( ComponentResult )
  2982. SGSetTextBackColor                (SGChannel                 c,
  2983.                                  RGBColor *                theColor)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0103, 0x7000, 0xA82A);
  2984.  
  2985. EXTERN_API( ComponentResult )
  2986. SGSetJustification                (SGChannel                 c,
  2987.                                  short                     just)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x0104, 0x7000, 0xA82A);
  2988.  
  2989. EXTERN_API( ComponentResult )
  2990. SGGetTextReturnToSpaceValue        (SGChannel                 c,
  2991.                                  short *                rettospace)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0105, 0x7000, 0xA82A);
  2992.  
  2993. EXTERN_API( ComponentResult )
  2994. SGSetTextReturnToSpaceValue        (SGChannel                 c,
  2995.                                  short                     rettospace)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x0106, 0x7000, 0xA82A);
  2996.  
  2997. /*
  2998.     Music stuff
  2999. */
  3000. EXTERN_API( ComponentResult )
  3001. SGGetInstrument                    (SGChannel                 c,
  3002.                                  ToneDescription *        td)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0100, 0x7000, 0xA82A);
  3003.  
  3004. EXTERN_API( ComponentResult )
  3005. SGSetInstrument                    (SGChannel                 c,
  3006.                                  ToneDescription *        td)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
  3007.  
  3008.  
  3009.  
  3010. enum {
  3011.     sgChannelAtom                = FOUR_CHAR_CODE('chan'),
  3012.     sgChannelSettingsAtom        = FOUR_CHAR_CODE('ctom'),
  3013.     sgChannelDescription        = FOUR_CHAR_CODE('cdsc'),
  3014.     sgChannelSettings            = FOUR_CHAR_CODE('cset')
  3015. };
  3016.  
  3017.  
  3018. enum {
  3019.     sgDeviceNameType            = FOUR_CHAR_CODE('name'),
  3020.     sgUsageType                    = FOUR_CHAR_CODE('use '),
  3021.     sgPlayFlagsType                = FOUR_CHAR_CODE('plyf'),
  3022.     sgClipType                    = FOUR_CHAR_CODE('clip'),
  3023.     sgMatrixType                = FOUR_CHAR_CODE('mtrx'),
  3024.     sgVolumeType                = FOUR_CHAR_CODE('volu')
  3025. };
  3026.  
  3027.  
  3028. enum {
  3029.     sgPanelSettingsAtom            = FOUR_CHAR_CODE('ptom'),
  3030.     sgPanelDescription            = FOUR_CHAR_CODE('pdsc'),
  3031.     sgPanelSettings                = FOUR_CHAR_CODE('pset')
  3032. };
  3033.  
  3034.  
  3035. enum {
  3036.     sgcSoundCompressionType        = FOUR_CHAR_CODE('scmp'),
  3037.     sgcSoundSampleRateType        = FOUR_CHAR_CODE('srat'),
  3038.     sgcSoundChannelCountType    = FOUR_CHAR_CODE('schn'),
  3039.     sgcSoundSampleSizeType        = FOUR_CHAR_CODE('ssiz'),
  3040.     sgcSoundInputType            = FOUR_CHAR_CODE('sinp'),
  3041.     sgcSoundGainType            = FOUR_CHAR_CODE('gain')
  3042. };
  3043.  
  3044.  
  3045. enum {
  3046.     sgcVideoHueType                = FOUR_CHAR_CODE('hue '),
  3047.     sgcVideoSaturationType        = FOUR_CHAR_CODE('satr'),
  3048.     sgcVideoContrastType        = FOUR_CHAR_CODE('trst'),
  3049.     sgcVideoSharpnessType        = FOUR_CHAR_CODE('shrp'),
  3050.     sgcVideoBrigtnessType        = FOUR_CHAR_CODE('brit'),
  3051.     sgcVideoBlackLevelType        = FOUR_CHAR_CODE('blkl'),
  3052.     sgcVideoWhiteLevelType        = FOUR_CHAR_CODE('whtl'),
  3053.     sgcVideoInputType            = FOUR_CHAR_CODE('vinp'),
  3054.     sgcVideoFormatType            = FOUR_CHAR_CODE('vstd'),
  3055.     sgcVideoFilterType            = FOUR_CHAR_CODE('vflt'),
  3056.     sgcVideoRectType            = FOUR_CHAR_CODE('vrct'),
  3057.     sgcVideoDigitizerType        = FOUR_CHAR_CODE('vdig')
  3058. };
  3059.  
  3060.  
  3061.  
  3062.  
  3063.  
  3064. typedef ComponentInstance                 QTVideoOutputComponent;
  3065. /* Component type and subtype enumerations*/
  3066.  
  3067. enum {
  3068.     QTVideoOutputComponentType    = FOUR_CHAR_CODE('vout'),
  3069.     QTVideoOutputComponentBaseSubType = FOUR_CHAR_CODE('base')
  3070. };
  3071.  
  3072.  
  3073. /* QTVideoOutput Component flags*/
  3074.  
  3075.  
  3076. enum {
  3077.     kQTVideoOutputDontDisplayToUser = 1L << 0
  3078. };
  3079.  
  3080. /* Display mode atom types*/
  3081.  
  3082.  
  3083. enum {
  3084.     kQTVODisplayModeItem        = FOUR_CHAR_CODE('qdmi'),
  3085.     kQTVODimensions                = FOUR_CHAR_CODE('dimn'),        /* atom contains two longs - pixel count - width, height*/
  3086.     kQTVOResolution                = FOUR_CHAR_CODE('resl'),        /* atom contains two Fixed - hRes, vRes in dpi*/
  3087.     kQTVORefreshRate            = FOUR_CHAR_CODE('refr'),        /* atom contains one Fixed - refresh rate in Hz*/
  3088.     kQTVOPixelType                = FOUR_CHAR_CODE('pixl'),        /* atom contains one OSType - pixel format of mode*/
  3089.     kQTVOName                    = FOUR_CHAR_CODE('name'),        /* atom contains string (no length byte) - name of modefor display to user*/
  3090.     kQTVODecompressors            = FOUR_CHAR_CODE('deco'),        /* atom contains other atoms indicating supported decompressors*/
  3091.                                                                 /* kQTVODecompressors sub-atoms*/
  3092.     kQTVODecompressorType        = FOUR_CHAR_CODE('dety'),        /* atom contains one OSType - decompressor type code*/
  3093.     kQTVODecompressorContinuous    = FOUR_CHAR_CODE('cont'),        /* atom contains one Boolean - true if this type is displayed continuously*/
  3094.     kQTVODecompressorComponent    = FOUR_CHAR_CODE('cmpt')        /* atom contains one Component - component id of decompressor*/
  3095. };
  3096.  
  3097. /** These are QTVideoOutput procedures **/
  3098. EXTERN_API( ComponentResult )
  3099. QTVideoOutputGetDisplayModeList    (QTVideoOutputComponent  vo,
  3100.                                  QTAtomContainer *        outputs)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0001, 0x7000, 0xA82A);
  3101.  
  3102. EXTERN_API( ComponentResult )
  3103. QTVideoOutputGetCurrentClientName (QTVideoOutputComponent  vo,
  3104.                                  Str255                 str)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0002, 0x7000, 0xA82A);
  3105.  
  3106. EXTERN_API( ComponentResult )
  3107. QTVideoOutputSetClientName        (QTVideoOutputComponent  vo,
  3108.                                  ConstStr255Param         str)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0003, 0x7000, 0xA82A);
  3109.  
  3110. EXTERN_API( ComponentResult )
  3111. QTVideoOutputGetClientName        (QTVideoOutputComponent  vo,
  3112.                                  Str255                 str)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0004, 0x7000, 0xA82A);
  3113.  
  3114. EXTERN_API( ComponentResult )
  3115. QTVideoOutputBegin                (QTVideoOutputComponent  vo)                                FIVEWORDINLINE(0x2F3C, 0x0000, 0x0005, 0x7000, 0xA82A);
  3116.  
  3117. EXTERN_API( ComponentResult )
  3118. QTVideoOutputEnd                (QTVideoOutputComponent  vo)                                FIVEWORDINLINE(0x2F3C, 0x0000, 0x0006, 0x7000, 0xA82A);
  3119.  
  3120. EXTERN_API( ComponentResult )
  3121. QTVideoOutputSetDisplayMode        (QTVideoOutputComponent  vo,
  3122.                                  long                     displayModeID)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0007, 0x7000, 0xA82A);
  3123.  
  3124. EXTERN_API( ComponentResult )
  3125. QTVideoOutputGetDisplayMode        (QTVideoOutputComponent  vo,
  3126.                                  long *                    displayModeID)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0008, 0x7000, 0xA82A);
  3127.  
  3128. EXTERN_API( ComponentResult )
  3129. QTVideoOutputCustomConfigureDisplay (QTVideoOutputComponent  vo,
  3130.                                  ModalFilterUPP         filter)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0009, 0x7000, 0xA82A);
  3131.  
  3132. EXTERN_API( ComponentResult )
  3133. QTVideoOutputSaveState            (QTVideoOutputComponent  vo,
  3134.                                  QTAtomContainer *        state)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x000A, 0x7000, 0xA82A);
  3135.  
  3136. EXTERN_API( ComponentResult )
  3137. QTVideoOutputRestoreState        (QTVideoOutputComponent  vo,
  3138.                                  QTAtomContainer         state)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x000B, 0x7000, 0xA82A);
  3139.  
  3140. EXTERN_API( ComponentResult )
  3141. QTVideoOutputGetGWorld            (QTVideoOutputComponent  vo,
  3142.                                  GWorldPtr *            gw)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x000C, 0x7000, 0xA82A);
  3143.  
  3144. EXTERN_API( ComponentResult )
  3145. QTVideoOutputGetGWorldParameters (QTVideoOutputComponent  vo,
  3146.                                  Ptr *                    baseAddr,
  3147.                                  long *                    rowBytes,
  3148.                                  CTabHandle *            colorTable)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x000D, 0x7000, 0xA82A);
  3149.  
  3150. EXTERN_API( ComponentResult )
  3151. QTVideoOutputGetIndSoundOutput    (QTVideoOutputComponent  vo,
  3152.                                  long                     index,
  3153.                                  Component *            outputComponent)                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x000E, 0x7000, 0xA82A);
  3154.  
  3155. EXTERN_API( ComponentResult )
  3156. QTVideoOutputGetClock            (QTVideoOutputComponent  vo,
  3157.                                  ComponentInstance *    clock)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x000F, 0x7000, 0xA82A);
  3158.  
  3159. EXTERN_API( ComponentResult )
  3160. QTVideoOutputSetEchoPort        (QTVideoOutputComponent  vo,
  3161.                                  CGrafPtr                 echoPort)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0010, 0x7000, 0xA82A);
  3162.  
  3163. /* UPP call backs */
  3164. enum { uppDataHCompletionProcInfo = 0x00000BC0 };                 /* pascal no_return_value Func(4_bytes, 4_bytes, 2_bytes) */
  3165. enum { uppVdigIntProcInfo = 0x000003C0 };                         /* pascal no_return_value Func(4_bytes, 4_bytes) */
  3166. enum { uppSGDataProcInfo = 0x003BFFE0 };                         /* pascal 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes, 2_bytes, 4_bytes) */
  3167. enum { uppSGModalFilterProcInfo = 0x00003FD0 };                 /* pascal 1_byte Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  3168. enum { uppSGGrabBottleProcInfo = 0x00000EF0 };                     /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes) */
  3169. enum { uppSGGrabCompleteBottleProcInfo = 0x00003EF0 };             /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes, 4_bytes) */
  3170. enum { uppSGDisplayBottleProcInfo = 0x0000FEF0 };                 /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes, 4_bytes, 4_bytes) */
  3171. enum { uppSGCompressBottleProcInfo = 0x00000EF0 };                 /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes) */
  3172. enum { uppSGCompressCompleteBottleProcInfo = 0x0000FEF0 };         /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes, 4_bytes, 4_bytes) */
  3173. enum { uppSGAddFrameBottleProcInfo = 0x0003FEF0 };                 /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  3174. enum { uppSGTransferFrameBottleProcInfo = 0x0000FEF0 };         /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes, 4_bytes, 4_bytes) */
  3175. enum { uppSGGrabCompressCompleteBottleProcInfo = 0x0000FFF0 };     /* pascal 4_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  3176. enum { uppSGDisplayCompressBottleProcInfo = 0x0003FFF0 };         /* pascal 4_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  3177. #define NewDataHCompletionProc(userRoutine)                     (DataHCompletionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppDataHCompletionProcInfo, GetCurrentArchitecture())
  3178. #define NewVdigIntProc(userRoutine)                             (VdigIntUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppVdigIntProcInfo, GetCurrentArchitecture())
  3179. #define NewSGDataProc(userRoutine)                                 (SGDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGDataProcInfo, GetCurrentArchitecture())
  3180. #define NewSGModalFilterProc(userRoutine)                         (SGModalFilterUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGModalFilterProcInfo, GetCurrentArchitecture())
  3181. #define NewSGGrabBottleProc(userRoutine)                         (SGGrabBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGGrabBottleProcInfo, GetCurrentArchitecture())
  3182. #define NewSGGrabCompleteBottleProc(userRoutine)                 (SGGrabCompleteBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGGrabCompleteBottleProcInfo, GetCurrentArchitecture())
  3183. #define NewSGDisplayBottleProc(userRoutine)                     (SGDisplayBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGDisplayBottleProcInfo, GetCurrentArchitecture())
  3184. #define NewSGCompressBottleProc(userRoutine)                     (SGCompressBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGCompressBottleProcInfo, GetCurrentArchitecture())
  3185. #define NewSGCompressCompleteBottleProc(userRoutine)             (SGCompressCompleteBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGCompressCompleteBottleProcInfo, GetCurrentArchitecture())
  3186. #define NewSGAddFrameBottleProc(userRoutine)                     (SGAddFrameBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGAddFrameBottleProcInfo, GetCurrentArchitecture())
  3187. #define NewSGTransferFrameBottleProc(userRoutine)                 (SGTransferFrameBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGTransferFrameBottleProcInfo, GetCurrentArchitecture())
  3188. #define NewSGGrabCompressCompleteBottleProc(userRoutine)         (SGGrabCompressCompleteBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGGrabCompressCompleteBottleProcInfo, GetCurrentArchitecture())
  3189. #define NewSGDisplayCompressBottleProc(userRoutine)             (SGDisplayCompressBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGDisplayCompressBottleProcInfo, GetCurrentArchitecture())
  3190. #define CallDataHCompletionProc(userRoutine, request, refcon, err)  CALL_THREE_PARAMETER_UPP((userRoutine), uppDataHCompletionProcInfo, (request), (refcon), (err))
  3191. #define CallVdigIntProc(userRoutine, flags, refcon)             CALL_TWO_PARAMETER_UPP((userRoutine), uppVdigIntProcInfo, (flags), (refcon))
  3192. #define CallSGDataProc(userRoutine, c, p, len, offset, chRefCon, time, writeType, refCon)  CALL_EIGHT_PARAMETER_UPP((userRoutine), uppSGDataProcInfo, (c), (p), (len), (offset), (chRefCon), (time), (writeType), (refCon))
  3193. #define CallSGModalFilterProc(userRoutine, theDialog, theEvent, itemHit, refCon)  CALL_FOUR_PARAMETER_UPP((userRoutine), uppSGModalFilterProcInfo, (theDialog), (theEvent), (itemHit), (refCon))
  3194. #define CallSGGrabBottleProc(userRoutine, c, bufferNum, refCon)  CALL_THREE_PARAMETER_UPP((userRoutine), uppSGGrabBottleProcInfo, (c), (bufferNum), (refCon))
  3195. #define CallSGGrabCompleteBottleProc(userRoutine, c, bufferNum, done, refCon)  CALL_FOUR_PARAMETER_UPP((userRoutine), uppSGGrabCompleteBottleProcInfo, (c), (bufferNum), (done), (refCon))
  3196. #define CallSGDisplayBottleProc(userRoutine, c, bufferNum, mp, clipRgn, refCon)  CALL_FIVE_PARAMETER_UPP((userRoutine), uppSGDisplayBottleProcInfo, (c), (bufferNum), (mp), (clipRgn), (refCon))
  3197. #define CallSGCompressBottleProc(userRoutine, c, bufferNum, refCon)  CALL_THREE_PARAMETER_UPP((userRoutine), uppSGCompressBottleProcInfo, (c), (bufferNum), (refCon))
  3198. #define CallSGCompressCompleteBottleProc(userRoutine, c, bufferNum, done, ci, refCon)  CALL_FIVE_PARAMETER_UPP((userRoutine), uppSGCompressCompleteBottleProcInfo, (c), (bufferNum), (done), (ci), (refCon))
  3199. #define CallSGAddFrameBottleProc(userRoutine, c, bufferNum, atTime, scale, ci, refCon)  CALL_SIX_PARAMETER_UPP((userRoutine), uppSGAddFrameBottleProcInfo, (c), (bufferNum), (atTime), (scale), (ci), (refCon))
  3200. #define CallSGTransferFrameBottleProc(userRoutine, c, bufferNum, mp, clipRgn, refCon)  CALL_FIVE_PARAMETER_UPP((userRoutine), uppSGTransferFrameBottleProcInfo, (c), (bufferNum), (mp), (clipRgn), (refCon))
  3201. #define CallSGGrabCompressCompleteBottleProc(userRoutine, c, done, ci, t, refCon)  CALL_FIVE_PARAMETER_UPP((userRoutine), uppSGGrabCompressCompleteBottleProcInfo, (c), (done), (ci), (t), (refCon))
  3202. #define CallSGDisplayCompressBottleProc(userRoutine, c, dataPtr, desc, mp, clipRgn, refCon)  CALL_SIX_PARAMETER_UPP((userRoutine), uppSGDisplayCompressBottleProcInfo, (c), (dataPtr), (desc), (mp), (clipRgn), (refCon))
  3203.  
  3204. /* selectors for component calls */
  3205. enum {
  3206.     kClockGetTimeSelect                                = 0x0001,
  3207.     kClockNewCallBackSelect                            = 0x0002,
  3208.     kClockDisposeCallBackSelect                        = 0x0003,
  3209.     kClockCallMeWhenSelect                            = 0x0004,
  3210.     kClockCancelCallBackSelect                        = 0x0005,
  3211.     kClockRateChangedSelect                            = 0x0006,
  3212.     kClockTimeChangedSelect                            = 0x0007,
  3213.     kClockSetTimeBaseSelect                            = 0x0008,
  3214.     kClockStartStopChangedSelect                    = 0x0009,
  3215.     kClockGetRateSelect                                = 0x000A,
  3216.     kSCGetCompressionExtendedSelect                    = 0x0001,
  3217.     kSCPositionRectSelect                            = 0x0002,
  3218.     kSCPositionDialogSelect                            = 0x0003,
  3219.     kSCSetTestImagePictHandleSelect                    = 0x0004,
  3220.     kSCSetTestImagePictFileSelect                    = 0x0005,
  3221.     kSCSetTestImagePixMapSelect                        = 0x0006,
  3222.     kSCGetBestDeviceRectSelect                        = 0x0007,
  3223.     kSCRequestImageSettingsSelect                    = 0x000A,
  3224.     kSCCompressImageSelect                            = 0x000B,
  3225.     kSCCompressPictureSelect                        = 0x000C,
  3226.     kSCCompressPictureFileSelect                    = 0x000D,
  3227.     kSCRequestSequenceSettingsSelect                = 0x000E,
  3228.     kSCCompressSequenceBeginSelect                    = 0x000F,
  3229.     kSCCompressSequenceFrameSelect                    = 0x0010,
  3230.     kSCCompressSequenceEndSelect                    = 0x0011,
  3231.     kSCDefaultPictHandleSettingsSelect                = 0x0012,
  3232.     kSCDefaultPictFileSettingsSelect                = 0x0013,
  3233.     kSCDefaultPixMapSettingsSelect                    = 0x0014,
  3234.     kSCGetInfoSelect                                = 0x0015,
  3235.     kSCSetInfoSelect                                = 0x0016,
  3236.     kSCNewGWorldSelect                                = 0x0017,
  3237.     kSCSetCompressFlagsSelect                        = 0x0018,
  3238.     kSCGetCompressFlagsSelect                        = 0x0019,
  3239.     kSCGetSettingsAsTextSelect                        = 0x001A,
  3240.     kSCGetSettingsAsAtomContainerSelect                = 0x001B,
  3241.     kSCSetSettingsFromAtomContainerSelect            = 0x001C,
  3242.     kTweenerInitializeSelect                        = 0x0001,
  3243.     kTweenerDoTweenSelect                            = 0x0002,
  3244.     kTweenerResetSelect                                = 0x0003,
  3245.     kTCGetCurrentTimeCodeSelect                        = 0x0101,
  3246.     kTCGetTimeCodeAtTimeSelect                        = 0x0102,
  3247.     kTCTimeCodeToStringSelect                        = 0x0103,
  3248.     kTCTimeCodeToFrameNumberSelect                    = 0x0104,
  3249.     kTCFrameNumberToTimeCodeSelect                    = 0x0105,
  3250.     kTCGetSourceRefSelect                            = 0x0106,
  3251.     kTCSetSourceRefSelect                            = 0x0107,
  3252.     kTCSetTimeCodeFlagsSelect                        = 0x0108,
  3253.     kTCGetTimeCodeFlagsSelect                        = 0x0109,
  3254.     kTCSetDisplayOptionsSelect                        = 0x010A,
  3255.     kTCGetDisplayOptionsSelect                        = 0x010B,
  3256.     kMovieImportHandleSelect                        = 0x0001,
  3257.     kMovieImportFileSelect                            = 0x0002,
  3258.     kMovieImportSetSampleDurationSelect                = 0x0003,
  3259.     kMovieImportSetSampleDescriptionSelect            = 0x0004,
  3260.     kMovieImportSetMediaFileSelect                    = 0x0005,
  3261.     kMovieImportSetDimensionsSelect                    = 0x0006,
  3262.     kMovieImportSetChunkSizeSelect                    = 0x0007,
  3263.     kMovieImportSetProgressProcSelect                = 0x0008,
  3264.     kMovieImportSetAuxiliaryDataSelect                = 0x0009,
  3265.     kMovieImportSetFromScrapSelect                    = 0x000A,
  3266.     kMovieImportDoUserDialogSelect                    = 0x000B,
  3267.     kMovieImportSetDurationSelect                    = 0x000C,
  3268.     kMovieImportGetAuxiliaryDataTypeSelect            = 0x000D,
  3269.     kMovieImportValidateSelect                        = 0x000E,
  3270.     kMovieImportGetFileTypeSelect                    = 0x000F,
  3271.     kMovieImportDataRefSelect                        = 0x0010,
  3272.     kMovieImportGetSampleDescriptionSelect            = 0x0011,
  3273.     kMovieImportGetMIMETypeListSelect                = 0x0012,
  3274.     kMovieImportSetOffsetAndLimitSelect                = 0x0013,
  3275.     kMovieImportGetSettingsAsAtomContainerSelect    = 0x0014,
  3276.     kMovieImportSetSettingsFromAtomContainerSelect = 0x0015,
  3277.     kMovieExportToHandleSelect                        = 0x0080,
  3278.     kMovieExportToFileSelect                        = 0x0081,
  3279.     kMovieExportGetAuxiliaryDataSelect                = 0x0083,
  3280.     kMovieExportSetProgressProcSelect                = 0x0084,
  3281.     kMovieExportSetSampleDescriptionSelect            = 0x0085,
  3282.     kMovieExportDoUserDialogSelect                    = 0x0086,
  3283.     kMovieExportGetCreatorTypeSelect                = 0x0087,
  3284.     kMovieExportToDataRefSelect                        = 0x0088,
  3285.     kMovieExportFromProceduresToDataRefSelect        = 0x0089,
  3286.     kMovieExportAddDataSourceSelect                    = 0x008A,
  3287.     kMovieExportValidateSelect                        = 0x008B,
  3288.     kMovieExportGetSettingsAsAtomContainerSelect    = 0x008C,
  3289.     kMovieExportSetSettingsFromAtomContainerSelect = 0x008D,
  3290.     kMovieExportGetFileNameExtensionSelect            = 0x008E,
  3291.     kMovieExportGetShortFileTypeStringSelect        = 0x008F,
  3292.     kMovieExportGetSourceMediaTypeSelect            = 0x0090,
  3293.     kTextExportGetDisplayDataSelect                    = 0x0100,
  3294.     kTextExportGetTimeFractionSelect                = 0x0101,
  3295.     kTextExportSetTimeFractionSelect                = 0x0102,
  3296.     kTextExportGetSettingsSelect                    = 0x0103,
  3297.     kTextExportSetSettingsSelect                    = 0x0104,
  3298.     kMIDIImportGetSettingsSelect                    = 0x0100,
  3299.     kMIDIImportSetSettingsSelect                    = 0x0101,
  3300.     kMovieExportNewGetDataAndPropertiesProcsSelect = 0x0100,
  3301.     kMovieExportDisposeGetDataAndPropertiesProcsSelect = 0x0101,
  3302.     kGraphicsImageImportSetSequenceEnabledSelect    = 0x0100,
  3303.     kGraphicsImageImportGetSequenceEnabledSelect    = 0x0101,
  3304.     kPreviewShowDataSelect                            = 0x0001,
  3305.     kPreviewMakePreviewSelect                        = 0x0002,
  3306.     kPreviewMakePreviewReferenceSelect                = 0x0003,
  3307.     kPreviewEventSelect                                = 0x0004,
  3308.     kDataCodecDecompressSelect                        = 0x0001,
  3309.     kDataCodecGetCompressBufferSizeSelect            = 0x0002,
  3310.     kDataCodecCompressSelect                        = 0x0003,
  3311.     kDataCodecBeginInterruptSafeSelect                = 0x0004,
  3312.     kDataCodecEndInterruptSafeSelect                = 0x0005,
  3313.     kDataCodecDecompressPartialSelect                = 0x0006,
  3314.     kDataCodecCompressPartialSelect                    = 0x0007,
  3315.     kDataHGetDataSelect                                = 0x0002,
  3316.     kDataHPutDataSelect                                = 0x0003,
  3317.     kDataHFlushDataSelect                            = 0x0004,
  3318.     kDataHOpenForWriteSelect                        = 0x0005,
  3319.     kDataHCloseForWriteSelect                        = 0x0006,
  3320.     kDataHOpenForReadSelect                            = 0x0008,
  3321.     kDataHCloseForReadSelect                        = 0x0009,
  3322.     kDataHSetDataRefSelect                            = 0x000A,
  3323.     kDataHGetDataRefSelect                            = 0x000B,
  3324.     kDataHCompareDataRefSelect                        = 0x000C,
  3325.     kDataHTaskSelect                                = 0x000D,
  3326.     kDataHScheduleDataSelect                        = 0x000E,
  3327.     kDataHFinishDataSelect                            = 0x000F,
  3328.     kDataHFlushCacheSelect                            = 0x0010,
  3329.     kDataHResolveDataRefSelect                        = 0x0011,
  3330.     kDataHGetFileSizeSelect                            = 0x0012,
  3331.     kDataHCanUseDataRefSelect                        = 0x0013,
  3332.     kDataHGetVolumeListSelect                        = 0x0014,
  3333.     kDataHWriteSelect                                = 0x0015,
  3334.     kDataHPreextendSelect                            = 0x0016,
  3335.     kDataHSetFileSizeSelect                            = 0x0017,
  3336.     kDataHGetFreeSpaceSelect                        = 0x0018,
  3337.     kDataHCreateFileSelect                            = 0x0019,
  3338.     kDataHGetPreferredBlockSizeSelect                = 0x001A,
  3339.     kDataHGetDeviceIndexSelect                        = 0x001B,
  3340.     kDataHIsStreamingDataHandlerSelect                = 0x001C,
  3341.     kDataHGetDataInBufferSelect                        = 0x001D,
  3342.     kDataHGetScheduleAheadTimeSelect                = 0x001E,
  3343.     kDataHSetCacheSizeLimitSelect                    = 0x001F,
  3344.     kDataHGetCacheSizeLimitSelect                    = 0x0020,
  3345.     kDataHGetMovieSelect                            = 0x0021,
  3346.     kDataHAddMovieSelect                            = 0x0022,
  3347.     kDataHUpdateMovieSelect                            = 0x0023,
  3348.     kDataHDoesBufferSelect                            = 0x0024,
  3349.     kDataHGetFileNameSelect                            = 0x0025,
  3350.     kDataHGetAvailableFileSizeSelect                = 0x0026,
  3351.     kDataHGetMacOSFileTypeSelect                    = 0x0027,
  3352.     kDataHGetMIMETypeSelect                            = 0x0028,
  3353.     kDataHSetDataRefWithAnchorSelect                = 0x0029,
  3354.     kDataHGetDataRefWithAnchorSelect                = 0x002A,
  3355.     kDataHSetMacOSFileTypeSelect                    = 0x002B,
  3356.     kDataHSetTimeBaseSelect                            = 0x002C,
  3357.     kDataHPlaybackHintsSelect                        = 0x0103,
  3358.     kVDGetMaxSrcRectSelect                            = 0x0001,
  3359.     kVDGetActiveSrcRectSelect                        = 0x0002,
  3360.     kVDSetDigitizerRectSelect                        = 0x0003,
  3361.     kVDGetDigitizerRectSelect                        = 0x0004,
  3362.     kVDGetVBlankRectSelect                            = 0x0005,
  3363.     kVDGetMaskPixMapSelect                            = 0x0006,
  3364.     kVDGetPlayThruDestinationSelect                    = 0x0008,
  3365.     kVDUseThisCLUTSelect                            = 0x0009,
  3366.     kVDSetInputGammaValueSelect                        = 0x000A,
  3367.     kVDGetInputGammaValueSelect                        = 0x000B,
  3368.     kVDSetBrightnessSelect                            = 0x000C,
  3369.     kVDGetBrightnessSelect                            = 0x000D,
  3370.     kVDSetContrastSelect                            = 0x000E,
  3371.     kVDSetHueSelect                                    = 0x000F,
  3372.     kVDSetSharpnessSelect                            = 0x0010,
  3373.     kVDSetSaturationSelect                            = 0x0011,
  3374.     kVDGetContrastSelect                            = 0x0012,
  3375.     kVDGetHueSelect                                    = 0x0013,
  3376.     kVDGetSharpnessSelect                            = 0x0014,
  3377.     kVDGetSaturationSelect                            = 0x0015,
  3378.     kVDGrabOneFrameSelect                            = 0x0016,
  3379.     kVDGetMaxAuxBufferSelect                        = 0x0017,
  3380.     kVDGetDigitizerInfoSelect                        = 0x0019,
  3381.     kVDGetCurrentFlagsSelect                        = 0x001A,
  3382.     kVDSetKeyColorSelect                            = 0x001B,
  3383.     kVDGetKeyColorSelect                            = 0x001C,
  3384.     kVDAddKeyColorSelect                            = 0x001D,
  3385.     kVDGetNextKeyColorSelect                        = 0x001E,
  3386.     kVDSetKeyColorRangeSelect                        = 0x001F,
  3387.     kVDGetKeyColorRangeSelect                        = 0x0020,
  3388.     kVDSetDigitizerUserInterruptSelect                = 0x0021,
  3389.     kVDSetInputColorSpaceModeSelect                    = 0x0022,
  3390.     kVDGetInputColorSpaceModeSelect                    = 0x0023,
  3391.     kVDSetClipStateSelect                            = 0x0024,
  3392.     kVDGetClipStateSelect                            = 0x0025,
  3393.     kVDSetClipRgnSelect                                = 0x0026,
  3394.     kVDClearClipRgnSelect                            = 0x0027,
  3395.     kVDGetCLUTInUseSelect                            = 0x0028,
  3396.     kVDSetPLLFilterTypeSelect                        = 0x0029,
  3397.     kVDGetPLLFilterTypeSelect                        = 0x002A,
  3398.     kVDGetMaskandValueSelect                        = 0x002B,
  3399.     kVDSetMasterBlendLevelSelect                    = 0x002C,
  3400.     kVDSetPlayThruDestinationSelect                    = 0x002D,
  3401.     kVDSetPlayThruOnOffSelect                        = 0x002E,
  3402.     kVDSetFieldPreferenceSelect                        = 0x002F,
  3403.     kVDGetFieldPreferenceSelect                        = 0x0030,
  3404.     kVDPreflightDestinationSelect                    = 0x0032,
  3405.     kVDPreflightGlobalRectSelect                    = 0x0033,
  3406.     kVDSetPlayThruGlobalRectSelect                    = 0x0034,
  3407.     kVDSetInputGammaRecordSelect                    = 0x0035,
  3408.     kVDGetInputGammaRecordSelect                    = 0x0036,
  3409.     kVDSetBlackLevelValueSelect                        = 0x0037,
  3410.     kVDGetBlackLevelValueSelect                        = 0x0038,
  3411.     kVDSetWhiteLevelValueSelect                        = 0x0039,
  3412.     kVDGetWhiteLevelValueSelect                        = 0x003A,
  3413.     kVDGetVideoDefaultsSelect                        = 0x003B,
  3414.     kVDGetNumberOfInputsSelect                        = 0x003C,
  3415.     kVDGetInputFormatSelect                            = 0x003D,
  3416.     kVDSetInputSelect                                = 0x003E,
  3417.     kVDGetInputSelect                                = 0x003F,
  3418.     kVDSetInputStandardSelect                        = 0x0040,
  3419.     kVDSetupBuffersSelect                            = 0x0041,
  3420.     kVDGrabOneFrameAsyncSelect                        = 0x0042,
  3421.     kVDDoneSelect                                    = 0x0043,
  3422.     kVDSetCompressionSelect                            = 0x0044,
  3423.     kVDCompressOneFrameAsyncSelect                    = 0x0045,
  3424.     kVDCompressDoneSelect                            = 0x0046,
  3425.     kVDReleaseCompressBufferSelect                    = 0x0047,
  3426.     kVDGetImageDescriptionSelect                    = 0x0048,
  3427.     kVDResetCompressSequenceSelect                    = 0x0049,
  3428.     kVDSetCompressionOnOffSelect                    = 0x004A,
  3429.     kVDGetCompressionTypesSelect                    = 0x004B,
  3430.     kVDSetTimeBaseSelect                            = 0x004C,
  3431.     kVDSetFrameRateSelect                            = 0x004D,
  3432.     kVDGetDataRateSelect                            = 0x004E,
  3433.     kVDGetSoundInputDriverSelect                    = 0x004F,
  3434.     kVDGetDMADepthsSelect                            = 0x0050,
  3435.     kVDGetPreferredTimeScaleSelect                    = 0x0051,
  3436.     kVDReleaseAsyncBuffersSelect                    = 0x0052,
  3437.     kVDSetDataRateSelect                            = 0x0054,
  3438.     kVDGetTimeCodeSelect                            = 0x0055,
  3439.     kVDUseSafeBuffersSelect                            = 0x0056,
  3440.     kVDGetSoundInputSourceSelect                    = 0x0057,
  3441.     kVDGetCompressionTimeSelect                        = 0x0058,
  3442.     kVDSetPreferredPacketSizeSelect                    = 0x0059,
  3443.     kVDSetPreferredImageDimensionsSelect            = 0x005A,
  3444.     kVDGetPreferredImageDimensionsSelect            = 0x005B,
  3445.     kVDGetInputNameSelect                            = 0x005C,
  3446.     kVDSetDestinationPortSelect                        = 0x005D,
  3447.     kSGInitializeSelect                                = 0x0001,
  3448.     kSGSetDataOutputSelect                            = 0x0002,
  3449.     kSGGetDataOutputSelect                            = 0x0003,
  3450.     kSGSetGWorldSelect                                = 0x0004,
  3451.     kSGGetGWorldSelect                                = 0x0005,
  3452.     kSGNewChannelSelect                                = 0x0006,
  3453.     kSGDisposeChannelSelect                            = 0x0007,
  3454.     kSGStartPreviewSelect                            = 0x0010,
  3455.     kSGStartRecordSelect                            = 0x0011,
  3456.     kSGIdleSelect                                    = 0x0012,
  3457.     kSGStopSelect                                    = 0x0013,
  3458.     kSGPauseSelect                                    = 0x0014,
  3459.     kSGPrepareSelect                                = 0x0015,
  3460.     kSGReleaseSelect                                = 0x0016,
  3461.     kSGGetMovieSelect                                = 0x0017,
  3462.     kSGSetMaximumRecordTimeSelect                    = 0x0018,
  3463.     kSGGetMaximumRecordTimeSelect                    = 0x0019,
  3464.     kSGGetStorageSpaceRemainingSelect                = 0x001A,
  3465.     kSGGetTimeRemainingSelect                        = 0x001B,
  3466.     kSGGrabPictSelect                                = 0x001C,
  3467.     kSGGetLastMovieResIDSelect                        = 0x001D,
  3468.     kSGSetFlagsSelect                                = 0x001E,
  3469.     kSGGetFlagsSelect                                = 0x001F,
  3470.     kSGSetDataProcSelect                            = 0x0020,
  3471.     kSGNewChannelFromComponentSelect                = 0x0021,
  3472.     kSGDisposeDeviceListSelect                        = 0x0022,
  3473.     kSGAppendDeviceListToMenuSelect                    = 0x0023,
  3474.     kSGSetSettingsSelect                            = 0x0024,
  3475.     kSGGetSettingsSelect                            = 0x0025,
  3476.     kSGGetIndChannelSelect                            = 0x0026,
  3477.     kSGUpdateSelect                                    = 0x0027,
  3478.     kSGGetPauseSelect                                = 0x0028,
  3479.     kSGSettingsDialogSelect                            = 0x0029,
  3480.     kSGGetAlignmentProcSelect                        = 0x002A,
  3481.     kSGSetChannelSettingsSelect                        = 0x002B,
  3482.     kSGGetChannelSettingsSelect                        = 0x002C,
  3483.     kSGGetModeSelect                                = 0x002D,
  3484.     kSGSetDataRefSelect                                = 0x002E,
  3485.     kSGGetDataRefSelect                                = 0x002F,
  3486.     kSGNewOutputSelect                                = 0x0030,
  3487.     kSGDisposeOutputSelect                            = 0x0031,
  3488.     kSGSetOutputFlagsSelect                            = 0x0032,
  3489.     kSGSetChannelOutputSelect                        = 0x0033,
  3490.     kSGGetDataOutputStorageSpaceRemainingSelect        = 0x0034,
  3491.     kSGHandleUpdateEventSelect                        = 0x0035,
  3492.     kSGSetOutputNextOutputSelect                    = 0x0036,
  3493.     kSGGetOutputNextOutputSelect                    = 0x0037,
  3494.     kSGSetOutputMaximumOffsetSelect                    = 0x0038,
  3495.     kSGGetOutputMaximumOffsetSelect                    = 0x0039,
  3496.     kSGGetOutputDataReferenceSelect                    = 0x003A,
  3497.     kSGWriteExtendedMovieDataSelect                    = 0x003B,
  3498.     kSGWriteMovieDataSelect                            = 0x0100,
  3499.     kSGAddFrameReferenceSelect                        = 0x0101,
  3500.     kSGGetNextFrameReferenceSelect                    = 0x0102,
  3501.     kSGGetTimeBaseSelect                            = 0x0103,
  3502.     kSGSortDeviceListSelect                            = 0x0104,
  3503.     kSGAddMovieDataSelect                            = 0x0105,
  3504.     kSGChangedSourceSelect                            = 0x0106,
  3505.     kSGAddExtendedFrameReferenceSelect                = 0x0107,
  3506.     kSGGetNextExtendedFrameReferenceSelect            = 0x0108,
  3507.     kSGAddExtendedMovieDataSelect                    = 0x0109,
  3508.     kSGAddOutputDataRefToMediaSelect                = 0x010A,
  3509.     kSGSetChannelUsageSelect                        = 0x0080,
  3510.     kSGGetChannelUsageSelect                        = 0x0081,
  3511.     kSGSetChannelBoundsSelect                        = 0x0082,
  3512.     kSGGetChannelBoundsSelect                        = 0x0083,
  3513.     kSGSetChannelVolumeSelect                        = 0x0084,
  3514.     kSGGetChannelVolumeSelect                        = 0x0085,
  3515.     kSGGetChannelInfoSelect                            = 0x0086,
  3516.     kSGSetChannelPlayFlagsSelect                    = 0x0087,
  3517.     kSGGetChannelPlayFlagsSelect                    = 0x0088,
  3518.     kSGSetChannelMaxFramesSelect                    = 0x0089,
  3519.     kSGGetChannelMaxFramesSelect                    = 0x008A,
  3520.     kSGSetChannelRefConSelect                        = 0x008B,
  3521.     kSGSetChannelClipSelect                            = 0x008C,
  3522.     kSGGetChannelClipSelect                            = 0x008D,
  3523.     kSGGetChannelSampleDescriptionSelect            = 0x008E,
  3524.     kSGGetChannelDeviceListSelect                    = 0x008F,
  3525.     kSGSetChannelDeviceSelect                        = 0x0090,
  3526.     kSGSetChannelMatrixSelect                        = 0x0091,
  3527.     kSGGetChannelMatrixSelect                        = 0x0092,
  3528.     kSGGetChannelTimeScaleSelect                    = 0x0093,
  3529.     kSGChannelPutPictureSelect                        = 0x0094,
  3530.     kSGChannelSetRequestedDataRateSelect            = 0x0095,
  3531.     kSGChannelGetRequestedDataRateSelect            = 0x0096,
  3532.     kSGChannelSetDataSourceNameSelect                = 0x0097,
  3533.     kSGChannelGetDataSourceNameSelect                = 0x0098,
  3534.     kSGInitChannelSelect                            = 0x0180,
  3535.     kSGWriteSamplesSelect                            = 0x0181,
  3536.     kSGGetDataRateSelect                            = 0x0182,
  3537.     kSGAlignChannelRectSelect                        = 0x0183,
  3538.     kSGPanelGetDitlSelect                            = 0x0200,
  3539.     kSGPanelGetTitleSelect                            = 0x0201,
  3540.     kSGPanelCanRunSelect                            = 0x0202,
  3541.     kSGPanelInstallSelect                            = 0x0203,
  3542.     kSGPanelEventSelect                                = 0x0204,
  3543.     kSGPanelItemSelect                                = 0x0205,
  3544.     kSGPanelRemoveSelect                            = 0x0206,
  3545.     kSGPanelSetGrabberSelect                        = 0x0207,
  3546.     kSGPanelSetResFileSelect                        = 0x0208,
  3547.     kSGPanelGetSettingsSelect                        = 0x0209,
  3548.     kSGPanelSetSettingsSelect                        = 0x020A,
  3549.     kSGPanelValidateInputSelect                        = 0x020B,
  3550.     kSGPanelSetEventFilterSelect                    = 0x020C,
  3551.     kSGGetSrcVideoBoundsSelect                        = 0x0100,
  3552.     kSGSetVideoRectSelect                            = 0x0101,
  3553.     kSGGetVideoRectSelect                            = 0x0102,
  3554.     kSGGetVideoCompressorTypeSelect                    = 0x0103,
  3555.     kSGSetVideoCompressorTypeSelect                    = 0x0104,
  3556.     kSGSetVideoCompressorSelect                        = 0x0105,
  3557.     kSGGetVideoCompressorSelect                        = 0x0106,
  3558.     kSGGetVideoDigitizerComponentSelect                = 0x0107,
  3559.     kSGSetVideoDigitizerComponentSelect                = 0x0108,
  3560.     kSGVideoDigitizerChangedSelect                    = 0x0109,
  3561.     kSGSetVideoBottlenecksSelect                    = 0x010A,
  3562.     kSGGetVideoBottlenecksSelect                    = 0x010B,
  3563.     kSGGrabFrameSelect                                = 0x010C,
  3564.     kSGGrabFrameCompleteSelect                        = 0x010D,
  3565.     kSGDisplayFrameSelect                            = 0x010E,
  3566.     kSGCompressFrameSelect                            = 0x010F,
  3567.     kSGCompressFrameCompleteSelect                    = 0x0110,
  3568.     kSGAddFrameSelect                                = 0x0111,
  3569.     kSGTransferFrameForCompressSelect                = 0x0112,
  3570.     kSGSetCompressBufferSelect                        = 0x0113,
  3571.     kSGGetCompressBufferSelect                        = 0x0114,
  3572.     kSGGetBufferInfoSelect                            = 0x0115,
  3573.     kSGSetUseScreenBufferSelect                        = 0x0116,
  3574.     kSGGetUseScreenBufferSelect                        = 0x0117,
  3575.     kSGGrabCompressCompleteSelect                    = 0x0118,
  3576.     kSGDisplayCompressSelect                        = 0x0119,
  3577.     kSGSetFrameRateSelect                            = 0x011A,
  3578.     kSGGetFrameRateSelect                            = 0x011B,
  3579.     kSGSetPreferredPacketSizeSelect                    = 0x0121,
  3580.     kSGGetPreferredPacketSizeSelect                    = 0x0122,
  3581.     kSGSetUserVideoCompressorListSelect                = 0x0123,
  3582.     kSGGetUserVideoCompressorListSelect                = 0x0124,
  3583.     kSGSetSoundInputDriverSelect                    = 0x0100,
  3584.     kSGGetSoundInputDriverSelect                    = 0x0101,
  3585.     kSGSoundInputDriverChangedSelect                = 0x0102,
  3586.     kSGSetSoundRecordChunkSizeSelect                = 0x0103,
  3587.     kSGGetSoundRecordChunkSizeSelect                = 0x0104,
  3588.     kSGSetSoundInputRateSelect                        = 0x0105,
  3589.     kSGGetSoundInputRateSelect                        = 0x0106,
  3590.     kSGSetSoundInputParametersSelect                = 0x0107,
  3591.     kSGGetSoundInputParametersSelect                = 0x0108,
  3592.     kSGSetAdditionalSoundRatesSelect                = 0x0109,
  3593.     kSGGetAdditionalSoundRatesSelect                = 0x010A,
  3594.     kSGSetFontNameSelect                            = 0x0100,
  3595.     kSGSetFontSizeSelect                            = 0x0101,
  3596.     kSGSetTextForeColorSelect                        = 0x0102,
  3597.     kSGSetTextBackColorSelect                        = 0x0103,
  3598.     kSGSetJustificationSelect                        = 0x0104,
  3599.     kSGGetTextReturnToSpaceValueSelect                = 0x0105,
  3600.     kSGSetTextReturnToSpaceValueSelect                = 0x0106,
  3601.     kSGGetInstrumentSelect                            = 0x0100,
  3602.     kSGSetInstrumentSelect                            = 0x0101,
  3603.     kQTVideoOutputGetDisplayModeListSelect            = 0x0001,
  3604.     kQTVideoOutputGetCurrentClientNameSelect        = 0x0002,
  3605.     kQTVideoOutputSetClientNameSelect                = 0x0003,
  3606.     kQTVideoOutputGetClientNameSelect                = 0x0004,
  3607.     kQTVideoOutputBeginSelect                        = 0x0005,
  3608.     kQTVideoOutputEndSelect                            = 0x0006,
  3609.     kQTVideoOutputSetDisplayModeSelect                = 0x0007,
  3610.     kQTVideoOutputGetDisplayModeSelect                = 0x0008,
  3611.     kQTVideoOutputCustomConfigureDisplaySelect        = 0x0009,
  3612.     kQTVideoOutputSaveStateSelect                    = 0x000A,
  3613.     kQTVideoOutputRestoreStateSelect                = 0x000B,
  3614.     kQTVideoOutputGetGWorldSelect                    = 0x000C,
  3615.     kQTVideoOutputGetGWorldParametersSelect            = 0x000D,
  3616.     kQTVideoOutputGetIndSoundOutputSelect            = 0x000E,
  3617.     kQTVideoOutputGetClockSelect                    = 0x000F,
  3618.     kQTVideoOutputSetEchoPortSelect                    = 0x0010
  3619. };
  3620.  
  3621.  
  3622. #if PRAGMA_STRUCT_ALIGN
  3623.     #pragma options align=reset
  3624. #elif PRAGMA_STRUCT_PACKPUSH
  3625.     #pragma pack(pop)
  3626. #elif PRAGMA_STRUCT_PACK
  3627.     #pragma pack()
  3628. #endif
  3629.  
  3630. #ifdef PRAGMA_IMPORT_OFF
  3631. #pragma import off
  3632. #elif PRAGMA_IMPORT
  3633. #pragma import reset
  3634. #endif
  3635.  
  3636. #ifdef __cplusplus
  3637. }
  3638. #endif
  3639.  
  3640. #endif /* __QUICKTIMECOMPONENTS__ */
  3641.  
  3642.